pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.74 2000/02/20 10:23:21 hubbe Exp $ +  * $Id: threads.h,v 1.75 2000/03/24 01:24:52 hubbe 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:384:   #if defined(PROFILING) && defined(HAVE_GETHRTIME)   #define DO_IF_PROFILING(X) X   #else   #define DO_IF_PROFILING(X)   #endif      #define SWAP_OUT_THREAD(_tmp) do { \    (_tmp)->swapped=1; \    (_tmp)->Pike_evaluator_stack=Pike_evaluator_stack;\    (_tmp)->evaluator_stack_malloced=evaluator_stack_malloced;\ -  (_tmp)->Pike_fp=Pike_fp;\ +  debug_malloc_touch( (_tmp)->Pike_fp=Pike_fp );\    (_tmp)->Pike_mark_sp=Pike_mark_sp;\    (_tmp)->Pike_mark_stack=Pike_mark_stack;\    (_tmp)->mark_stack_malloced=mark_stack_malloced;\    (_tmp)->recoveries=recoveries;\    (_tmp)->Pike_sp=Pike_sp; \    (_tmp)->Pike_stack_top=Pike_stack_top; \    (_tmp)->thread_id=thread_id;\    DO_IF_PROFILING( (_tmp)->accounted_time=accounted_time; ) \    DO_IF_PROFILING( (_tmp)->time_base = gethrtime() - time_base; ) \    DO_IF_SECURITY( (_tmp)->current_creds = current_creds ;) \    SWAP_OUT_TRACE(_tmp); \    } while(0)      #define SWAP_IN_THREAD(_tmp) do {\    (_tmp)->swapped=0; \    Pike_evaluator_stack=(_tmp)->Pike_evaluator_stack;\    evaluator_stack_malloced=(_tmp)->evaluator_stack_malloced;\ -  Pike_fp=(_tmp)->Pike_fp;\ +  debug_malloc_touch( Pike_fp=(_tmp)->Pike_fp );\    Pike_mark_sp=(_tmp)->Pike_mark_sp;\    Pike_mark_stack=(_tmp)->Pike_mark_stack;\    mark_stack_malloced=(_tmp)->mark_stack_malloced;\    recoveries=(_tmp)->recoveries;\    Pike_sp=(_tmp)->Pike_sp;\    Pike_stack_top=(_tmp)->Pike_stack_top;\    thread_id=(_tmp)->thread_id;\    DO_IF_PROFILING( accounted_time=(_tmp)->accounted_time; ) \    DO_IF_PROFILING( time_base = gethrtime() - (_tmp)->time_base; ) \    DO_IF_SECURITY( current_creds = (_tmp)->current_creds ;) \