pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.45 1997/10/16 06:34:28 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.46 1997/11/08 01:34:45 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "object.h"   #include "pike_macros.h"   #include "callback.h"
pike.git/src/threads.c:398:   {    MEMSET(o->storage, 0, sizeof(struct thread_state));   }      #ifdef DEBUG   static void thread_was_marked(struct object *o)   {    struct thread_state *tmp=(struct thread_state *)(o->storage);    if(tmp->swapped)    { -  gc_xmark_svalues(tmp->evaluator_stack,tmp->sp-tmp->evaluator_stack-1); +  debug_gc_xmark_svalues(tmp->evaluator_stack,tmp->sp-tmp->evaluator_stack-1,"idle thread stack");    }   }   #endif      void th_init(void)   {    struct program *tmp;    INT32 mutex_key_offset;      #ifdef SGI_SPROC_THREADS