pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.117 2003/01/08 18:11:03 mast Exp $ +  * $Id: threads.h,v 1.118 2003/03/31 18:20:14 grubba Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "object.h"   #include "pike_error.h"   #include "interpret.h"      /* Needed for the sigset_t typedef, which is needed for
pike.git/src/threads.h:458:   #define DO_IF_PROFILING(X) X   #else   #define DO_IF_PROFILING(X)   #endif      #define SWAP_OUT_THREAD(_tmp) do { \    (_tmp)->state=Pike_interpreter; \    (_tmp)->swapped=1; \    DO_IF_PROFILING( (_tmp)->time_base += gethrtime() ; ) \    SWAP_OUT_TRACE(_tmp); \ +  Pike_interpreter.thread_id = (struct object *) (ptrdiff_t) -1; \    } while(0)      #define SWAP_IN_THREAD(_tmp) do { \    (_tmp)->swapped=0; \    Pike_interpreter=(_tmp)->state; \    DO_IF_USE_CLOCK_FOR_SLICES (thread_start_clock = 0); \    DO_IF_PROFILING( Pike_interpreter.time_base -= gethrtime();) \    SWAP_IN_TRACE(_tmp); \    } while(0)