pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.116 2001/11/01 18:19:11 mast Exp $ +  * $Id: threads.h,v 1.117 2001/11/01 18:40:12 mast Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "object.h"   #include "pike_error.h"   #include "interpret.h"   #include "pike_threadlib.h"   
pike.git/src/threads.h:24: Inside #if defined(PIKE_THREADS)
   PIKE_MUTEX_T lock;   };      #define IMUTEX_T struct interleave_mutex      #define DEFINE_IMUTEX(name) IMUTEX_T name      /* If threads are disabled, we already hold the lock. */   #define LOCK_IMUTEX(im) do { \    if (!threads_disabled) { \ -  THREADS_FPRINTF(0, (stderr, "Locking IMutex 0x%08p...\n", (im))); \ +  THREADS_FPRINTF(0, (stderr, "Locking IMutex 0x%p...\n", (im))); \    THREADS_ALLOW(); \    mt_lock(&((im)->lock)); \    THREADS_DISALLOW(); \    } \    } while(0)      /* If threads are disabled, the lock will be released later. */   #define UNLOCK_IMUTEX(im) do { \    if (!threads_disabled) { \ -  THREADS_FPRINTF(0, (stderr, "Unlocking IMutex 0x%08p...\n", (im))); \ +  THREADS_FPRINTF(0, (stderr, "Unlocking IMutex 0x%p...\n", (im))); \    mt_unlock(&((im)->lock)); \    } \    } while(0)      #define THREAD_NOT_STARTED -1   #define THREAD_RUNNING 0   #define THREAD_EXITED 1      struct thread_state {    struct Pike_interpreter state;