pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.117 2000/10/04 22:11:17 grubba Exp $"); + RCSID("$Id: threads.c,v 1.118 2000/10/04 22:14:57 grubba Exp $");      int num_threads = 1;   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:1391:       thread_id=clone_object(thread_id_prog,0);    SWAP_OUT_THREAD(OBJ2THREAD(thread_id)); /* Init struct */    OBJ2THREAD(thread_id)->swapped=0;    OBJ2THREAD(thread_id)->id=th_self();    thread_table_insert(thread_id);   }      void th_cleanup(void)   { -  th_running = 0; -  +     if(thread_id)    {    thread_table_delete(thread_id);    destruct(thread_id);    free_object(thread_id);    thread_id=0;    }       if(mutex_key)    {