Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_thread.h @ 275:b836469c37c3
nginx-0.0.2-2004-03-02-18:40:59 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 02 Mar 2004 15:40:59 +0000 |
parents | d4e65d74db9f |
children | e91499541410 |
comparison
equal
deleted
inserted
replaced
274:a1ea1ecc3eac | 275:b836469c37c3 |
---|---|
4 | 4 |
5 #include <ngx_config.h> | 5 #include <ngx_config.h> |
6 #include <ngx_core.h> | 6 #include <ngx_core.h> |
7 | 7 |
8 #if (NGX_THREADS) | 8 #if (NGX_THREADS) |
9 | |
10 #define ngx_thread_volatile volatile | |
9 | 11 |
10 #if (NGX_USE_RFORK) | 12 #if (NGX_USE_RFORK) |
11 | 13 |
12 #include <sys/ipc.h> | 14 #include <sys/ipc.h> |
13 #include <sys/sem.h> | 15 #include <sys/sem.h> |
94 extern ngx_int_t ngx_threaded; | 96 extern ngx_int_t ngx_threaded; |
95 | 97 |
96 | 98 |
97 #else /* !NGX_THREADS */ | 99 #else /* !NGX_THREADS */ |
98 | 100 |
101 #define ngx_thread_volatile | |
102 | |
99 #define ngx_log_tid 0 | 103 #define ngx_log_tid 0 |
100 #define TID_T_FMT "%d" | 104 #define TID_T_FMT "%d" |
101 | 105 |
102 #define ngx_mutex_lock(m) | 106 #define ngx_mutex_lock(m) |
103 #define ngx_mutex_unlock(m) | 107 #define ngx_mutex_unlock(m) |