pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.135 2000/08/10 18:25:17 grubba Exp $"); + RCSID("$Id: threads.c,v 1.136 2000/08/11 11:02:36 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:1048:   void f_thread_id_status(INT32 args)   {    pop_n_elems(args);    push_int(THIS_THREAD->status);   }      void f_thread_id__sprintf (INT32 args)   {    pop_n_elems (args);    push_constant_text ("Thread.Thread("); -  push_int (THIS_THREAD->id); +  push_int64((ptrdiff_t)THIS_THREAD->id);    push_constant_text (")");    f_add (3);   }      static void f_thread_id_result(INT32 args)   {    struct thread_state *th=THIS_THREAD;       SWAP_OUT_CURRENT_THREAD();