From 4ee87e6ed4da746405b2d0ef08d85f42529d439c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 18 Sep 2001 15:56:55 -0700 Subject: [PATCH] why emulate th_atfork on a platform that does not have fork() ? Rev: src/pike_threadlib.h:1.5 --- src/pike_threadlib.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pike_threadlib.h b/src/pike_threadlib.h index 5e7468be26..66c19eea18 100644 --- a/src/pike_threadlib.h +++ b/src/pike_threadlib.h @@ -1,5 +1,5 @@ /* - * $Id: pike_threadlib.h,v 1.4 2001/09/05 01:42:13 hubbe Exp $ + * $Id: pike_threadlib.h,v 1.5 2001/09/18 22:56:55 hubbe Exp $ */ #ifndef PIKE_THREADLIB_H #define PIKE_THREADLIB_H @@ -89,11 +89,18 @@ PMOD_EXPORT extern size_t thread_stack_size; #define th_atfork_parent() #define th_atfork_child() #else +#ifdef __NT__ +#define th_atfork(X,Y,Z) +#define th_atfork_prepare() +#define th_atfork_parent() +#define th_atfork_child() +#else int th_atfork(void (*)(void),void (*)(void),void (*)(void)); void th_atfork_prepare(void); void th_atfork_parent(void); void th_atfork_child(void); #endif +#endif #define THREAD_T pthread_t #define PIKE_MUTEX_T pthread_mutex_t @@ -364,6 +371,7 @@ extern THREAD_T debug_locking_thread; #define th_hash(X) hashmem((unsigned char *)&(X),sizeof(THREAD_T), 16) #endif + /* Define to get a debug-trace of some of the threads operations. */ /* #define VERBOSE_THREADS_DEBUG 0 */ /* Some debug */ /* #define VERBOSE_THREADS_DEBUG 1 */ /* Lots of debug */ -- GitLab