pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.153 2001/02/06 17:54:44 grubba Exp $"); + RCSID("$Id: threads.c,v 1.154 2001/05/16 23:34:38 hubbe 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:584: Inside #if defined(__NT__)
   fatal("Failed to lock interpreter, return value=%d, errno=%d\n",tmp,   #ifdef __NT__    GetLastError()   #else    errno   #endif    );    SWAP_IN_THREAD(OBJ2THREAD(arg.id)); /* Init struct */    init_interpreter();    Pike_interpreter.thread_id=arg.id; + #ifdef PROFILING +  Pike_interpreter.stack_bottom=((char *)&data); + #endif    Pike_interpreter.stack_top=((char *)&data)+ (thread_stack_size-16384) * STACK_DIRECTION;    Pike_interpreter.recoveries = NULL;    SWAP_OUT_THREAD(OBJ2THREAD(Pike_interpreter.thread_id)); /* Init struct */    OBJ2THREAD(Pike_interpreter.thread_id)->swapped=0;      #if defined(PIKE_DEBUG)    if(d_flag)    {    THREAD_T self = th_self();