diff src/os/unix/ngx_thread.h @ 372:c9fdfccebc49

nginx-0.0.7-2004-06-29-01:03:14 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 28 Jun 2004 21:03:14 +0000
parents 780e93985b93
children d0451e402e27
line wrap: on
line diff
--- 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