pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.118 2000/04/12 16:54:42 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.119 2000/04/15 05:05:28 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:572:    recoveries = NULL;    SWAP_OUT_THREAD(OBJ2THREAD(thread_id)); /* Init struct */    OBJ2THREAD(thread_id)->swapped=0;      #if defined(PIKE_DEBUG)    if(d_flag)    {    THREAD_T self = th_self();       if( thread_id && !th_equal( OBJ2THREAD(thread_id)->id, self) ) -  fatal("Current thread is wrong. %x %x\n", -  OBJ2THREAD(thread_id)->id, self); +  fatal("Current thread is wrong. %lx %lx\n", +  (long)OBJ2THREAD(thread_id)->id, (long)self);       if(thread_for_id(th_self()) != thread_id)    fatal("thread_for_id() (or thread_id) failed in new_thread_func! "    "%p != %p\n", thread_for_id(self), thread_id);    }   #endif      #ifdef THREAD_TRACE    {    t_flag = default_t_flag;