pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:144:   #define th_exit(X) exit(X)   #define th_self() getpid()   #define th_yield() sginap(0)      /*    * No cond_vars yet    */      #endif /* SGI_SPROC_THREADS */    +  + #ifdef NT_THREADS + #include <process.h> +  + #define MUTEX_T HANDLE + #define mt_init(X) + #define mt_lock(X) + #define mt_trylock(X) + #define mt_unlock(X) + #define mt_destroy(X) +  + #define THREAD_T HANDLE + #define th_setconcurrency(X) + #define th_create(ID,fun,arg) _beginthreadex(NULL, 2*1024*1024, fun, arg, 0, ID) + #define th_exit(foo) _endthreadex(foo) + #define th_self() +  + #endif +    extern MUTEX_T interpreter_lock;         struct svalue;   struct frame;      #define THREAD_NOT_STARTED -1   #define THREAD_RUNNING 0   #define THREAD_EXITED 1