pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.85 1998/11/22 11:03:22 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.86 1999/01/21 09:15:19 hubbe 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:494:    sp-1);    pop_stack();    }       if(((struct thread_state *)(thread_id->storage))->thread_local != NULL) {    free_mapping(((struct thread_state *)(thread_id->storage))->thread_local);    ((struct thread_state *)(thread_id->storage))->thread_local = NULL;    }       ((struct thread_state *)(thread_id->storage))->status=THREAD_EXITED; -  co_signal(& ((struct thread_state *)(thread_id->storage))->status_change); +  co_broadcast(& ((struct thread_state *)(thread_id->storage))->status_change);       free((char *)data); /* Moved by per, to avoid some bugs.... */    UNSETJMP(back);       THREADS_FPRINTF(0, (stderr,"THREADS_ALLOW() Thread %08x done\n",    (unsigned int)thread_id));       thread_table_delete(thread_id);    free_object(thread_id);    thread_id=0;