pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.164 2002/09/14 03:03:04 mast Exp $"); + RCSID("$Id: threads.c,v 1.165 2002/11/18 17:09:07 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "mapping.h"   #include "object.h"   #include "pike_macros.h"
pike.git/src/threads.c:1146:    SWAP_IN_CURRENT_THREAD();       low_object_index_no_free(Pike_sp,    Pike_fp->current_object,    thread_id_result_variable);    Pike_sp++;   }      void init_thread_obj(struct object *o)   { -  MEMSET(THIS_THREAD, 0, sizeof(struct Pike_interpreter)); +  MEMSET(&THIS_THREAD->state, 0, sizeof(struct Pike_interpreter)); +  THIS_THREAD->swapped = 0;    THIS_THREAD->status=THREAD_NOT_STARTED;    co_init(& THIS_THREAD->status_change);    THIS_THREAD->thread_local=NULL;   }         void exit_thread_obj(struct object *o)   {    if(THIS_THREAD->thread_local != NULL) {    free_mapping(THIS_THREAD->thread_local);