pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: threads.c,v 1.272 2009/01/25 18:05:34 grubba Exp $ + || $Id: threads.c,v 1.273 2009/01/25 19:28:47 grubba Exp $   */      #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      /* #define PICKY_MUTEX */      #ifdef _REENTRANT
pike.git/src/threads.c:265: Inside #if undefined(CONFIGURE_TEST), #if defined(POSIX_THREADS) and #if defined(HAVE_PTHREAD_COND_RELTIMEDWAIT_NP)
   timeout.tv_nsec = nanos;    return pthread_cond_reltimedwait_np(c, m, &timeout);   #else /* !HAVE_PTHREAD_COND_RELTIMEDWAIT_NP */    /* Absolute timeout. */    GETTIMEOFDAY(&current_time);    timeout.tv_sec = current_time.tv_sec + s;    timeout.tv_nsec = current_time.tv_usec * 1000 + nanos;    return pthread_cond_timedwait(c, m, &timeout);   #endif /* HAVE_PTHREAD_COND_RELTIMEDWAIT_NP */   #else /* !POSIX_THREADS */ - #error co_wait_timeout doesn't support this thread model. + #error co_wait_timeout does not support this thread model.   #endif /* POSIX_THREADS */   }   #endif /* !CONFIGURE_TEST */      #endif /* SIMULATE_COND_WITH_EVENT */      #ifdef POSIX_THREADS   pthread_attr_t pattr;   pthread_attr_t small_pattr;   #endif