Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_freebsd_rfork_thread.h @ 380:5ce6561246a5
nginx-0.0.7-2004-07-07-10:15:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 07 Jul 2004 06:15:04 +0000 |
parents | 73688d5d7fc3 |
children | 02a511569afb |
comparison
equal
deleted
inserted
replaced
379:73688d5d7fc3 | 380:5ce6561246a5 |
---|---|
83 return (ngx_freebsd_kern_usrstack - sp) / ngx_thread_stack_size; | 83 return (ngx_freebsd_kern_usrstack - sp) / ngx_thread_stack_size; |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 ngx_tid_t ngx_thread_self(); | 87 ngx_tid_t ngx_thread_self(); |
88 #define ngx_thread_main() (ngx_gettid() == 0) | |
89 | 88 |
90 | 89 |
91 #define ngx_mutex_trylock(m) ngx_mutex_dolock(m, 1) | 90 #define ngx_mutex_trylock(m) ngx_mutex_dolock(m, 1) |
92 #define ngx_mutex_lock(m) ngx_mutex_dolock(m, 0) | 91 #define ngx_mutex_lock(m) ngx_mutex_dolock(m, 0) |
93 ngx_int_t ngx_mutex_dolock(ngx_mutex_t *m, ngx_int_t try); | 92 ngx_int_t ngx_mutex_dolock(ngx_mutex_t *m, ngx_int_t try); |