pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.90 2000/04/25 22:35:20 mast Exp $ +  * $Id: threads.h,v 1.91 2000/04/26 14:46:21 mast Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "interpret.h"   #include "object.h"   #include "error.h"      /* Needed for the sigset_t typedef, which is needed for
pike.git/src/threads.h:282:    } \   } while (0)      #else      #define mt_lock_interpreter() (mt_lock(&interpreter_lock))   #define mt_trylock_interpreter() (mt_trylock(&interpreter_lock))   #define mt_unlock_interpreter() (mt_unlock(&interpreter_lock))   #define co_wait_interpreter(COND) do {co_wait((COND), &interpreter_lock);} while (0)    - #define CHECK_INTERPRETER_LOCK() do {} while (0) -  +    #endif      extern COND_T live_threads_change; /* Used by _disable_threads */   extern COND_T threads_disabled_change; /* Used by _disable_threads */      struct svalue;   struct pike_frame;      extern PIKE_MUTEX_T interleave_lock;   
pike.git/src/threads.h:670:   #define th_self() ((void*)0)   #define co_signal(X)   #define co_broadcast(X)      #define low_init_threads_disable()   #define init_threads_disable(X)   #define exit_threads_disable(X)      #endif /* PIKE_THREADS */    + #ifndef CHECK_INTERPRETER_LOCK + #define CHECK_INTERPRETER_LOCK() do {} while (0) + #endif +    #ifdef __NT__   #ifndef PIKE_DEBUG   #define CheckValidHandle(X) (X)   #else   HANDLE CheckValidHandle(HANDLE h);   #endif   #endif      extern int threads_disabled;   extern int thread_storage_offset;