pike.git/
src/
threads.h
Branch:
Tag:
Non-build tags
All tags
No tags
1998-01-02
1998-01-02 08:18:43 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
a2db6be47775e7b599c3c17e9d1d6ea86020f376 (
20
lines) (+
20
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
bugfixes
Rev: src/configure.in:1.146
Rev: src/threads.c:1.49
Rev: src/threads.h:1.23
151:
#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;