diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-06-28 16:05:02 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-28 16:05:02 +0000 |
commit | b14b91020284baf090b40bdb6ba87b99751f27fb (patch) | |
tree | 5c0a3b3cd099910a1d9698b6972db858839b3067 /src/os/unix/ngx_thread.h | |
parent | c02473048cee372cb8644e1f2d566431781074d2 (diff) | |
download | nginx-b14b91020284baf090b40bdb6ba87b99751f27fb.tar.gz nginx-b14b91020284baf090b40bdb6ba87b99751f27fb.zip |
nginx-0.0.7-2004-06-28-20:05:02 import
Diffstat (limited to 'src/os/unix/ngx_thread.h')
-rw-r--r-- | src/os/unix/ngx_thread.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/os/unix/ngx_thread.h b/src/os/unix/ngx_thread.h index 6412fe8b2..c91ff9986 100644 --- a/src/os/unix/ngx_thread.h +++ b/src/os/unix/ngx_thread.h @@ -37,8 +37,9 @@ typedef volatile struct { typedef struct { - ngx_mutex_t mutex; -} ngx_cv_t; + int semid; + ngx_log_t *log; +} ngx_cond_t; #define ngx_thread_sigmask(how, set, oset) \ @@ -107,10 +108,10 @@ ngx_int_t ngx_mutex_dolock(ngx_mutex_t *m, ngx_int_t try); ngx_int_t ngx_mutex_unlock(ngx_mutex_t *m); -ngx_cv_t *ngx_cv_init(ngx_log_t *log); -void ngx_cv_done(ngx_cv_t *cv); -ngx_int_t ngx_cv_wait(ngx_cv_t *cv); -ngx_int_t ngx_cv_signal(ngx_cv_t *cv); +ngx_cond_t *ngx_cond_init(ngx_log_t *log); +void ngx_cond_done(ngx_cond_t *cv); +ngx_int_t ngx_cond_wait(ngx_cond_t *cv, ngx_mutex_t *m); +ngx_int_t ngx_cond_signal(ngx_cond_t *cv); #else /* !NGX_THREADS */ |