pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.106 1999/12/14 19:49:51 mast Exp $"); + RCSID("$Id: threads.c,v 1.107 2000/01/16 05:57:34 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:553:    if((tmp=mt_lock( & interpreter_lock)))    fatal("Failed to lock interpreter, return value=%d, errno=%d\n",tmp,   #ifdef __NT__    GetLastError()   #else    errno   #endif    );    init_interpreter();    thread_id=arg.id; -  SWAP_OUT_THREAD(OBJ2THREAD(thread_id)); /* Init struct */ -  OBJ2THREAD(thread_id)->swapped=0; +     stack_top=((char *)&data)+ (thread_stack_size-16384) * STACK_DIRECTION;    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);