pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.137 2000/08/13 15:16:33 grubba Exp $"); + RCSID("$Id: threads.c,v 1.138 2000/08/18 22:28:48 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:60:   }   #endif      #ifdef __NT__      int low_nt_create_thread(unsigned stack_size,    unsigned (TH_STDCALL *fun)(void *),    void *arg,    unsigned *id)   { -  HANDLE h=_beginthreadex(NULL, stack_size, fun, arg, 0, id); +  HANDLE h = (HANDLE)_beginthreadex(NULL, stack_size, fun, arg, 0, id);    if(h)    {    CloseHandle(h);    return 0;    }    else    {    return 1;    }   }