pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.178 2002/02/05 19:15:23 mast Exp $"); + RCSID("$Id: threads.c,v 1.179 2002/06/17 15:42:39 grubba 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:564:    INT32 x;    struct svalue *oldsp;    struct thread_state *s;       pop_n_elems(args);    oldsp = Pike_sp;    mt_lock( & thread_table_lock );    for(x=0; x<THREAD_TABLE_SIZE; x++)    for(s=thread_table_chains[x]; s; s=s->hashlink) {    struct object *o = THREADSTATE2OBJ(s); +  if (o) {    ref_push_object(o);    } -  +  }    mt_unlock( & thread_table_lock );    f_aggregate(DO_NOT_WARN(Pike_sp - oldsp));   }      #ifdef PIKE_DEBUG   void debug_list_all_threads(void)   {    INT32 x;    struct thread_state *s;    THREAD_T self = th_self();