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.247 2006/01/29 16:41:18 grubba Exp $ + || $Id: threads.c,v 1.248 2006/01/30 10:03:21 grubba Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */
pike.git/src/threads.c:1494:    *!    *! @seealso    *! @[Mutex]    */      struct pike_cond {    COND_T cond;    int wait_count;   };    - #define THIS_COND ((pike_cond *)(CURRENT_STORAGE)) + #define THIS_COND ((struct pike_cond *)(CURRENT_STORAGE))      /*! @decl void wait(Thread.MutexKey mutex_key)    *!    *! Wait for condition.    *!    *! This function makes the current thread sleep until the condition    *! variable is signalled. The argument should be a @[Thread.MutexKey]    *! object for a @[Thread.Mutex]. It will be unlocked atomically    *! before waiting for the signal and then relocked atomically when    *! the signal is received.