From 0a94cfd2ae9ca87b4d988b5066f739a3034f3bff Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 28 Jun 2004 21:03:14 +0000 Subject: nginx-0.0.7-2004-06-29-01:03:14 import --- src/os/unix/ngx_thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/os/unix/ngx_thread.h') diff --git a/src/os/unix/ngx_thread.h b/src/os/unix/ngx_thread.h index c91ff9986..a1404038e 100644 --- a/src/os/unix/ngx_thread.h +++ b/src/os/unix/ngx_thread.h @@ -77,6 +77,8 @@ static inline int ngx_gettid() } +#define ngx_thread_main() (ngx_gettid() == 0) + #else /* use pthreads */ @@ -124,6 +126,10 @@ ngx_int_t ngx_cond_signal(ngx_cond_t *cv); #define ngx_mutex_lock(m) NGX_OK #define ngx_mutex_unlock(m) +#define ngx_cond_signal(cv) + +#define ngx_thread_main() 1 + #endif -- cgit v1.2.3