pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.149 2000/12/05 21:08:23 per Exp $"); + RCSID("$Id: threads.c,v 1.150 2001/01/24 08:17:28 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:55:    call_callback(& atfork_parent_callback, 0);   }   void th_atfork_child(void)   {    call_callback(& atfork_child_callback, 0);   }   #endif      #ifdef __NT__    - int low_nt_create_thread(unsigned stack_size, + int low_nt_create_thread(unsigned Pike_stack_size,    unsigned (TH_STDCALL *fun)(void *),    void *arg,    unsigned *id)   { -  HANDLE h = (HANDLE)_beginthreadex(NULL, stack_size, fun, arg, 0, id); +  HANDLE h = (HANDLE)_beginthreadex(NULL, Pike_stack_size, fun, arg, 0, id);    if(h)    {    CloseHandle(h);    return 0;    }    else    {    return 1;    }   }
pike.git/src/threads.c:1489:    }       if(thread_id_prog)    {    free_program(thread_id_prog);    thread_id_prog=0;    }   }      #endif +