Mercurial > hg > nginx
comparison src/os/unix/ngx_thread.h @ 270:7bb9562216ce
nginx-0.0.2-2004-02-25-23:16:15 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 25 Feb 2004 20:16:15 +0000 |
parents | 83205e0b5522 |
children | e16dfb9b9afa |
comparison
equal
deleted
inserted
replaced
269:f082cb6bcdd7 | 270:7bb9562216ce |
---|---|
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 | 9 |
10 #if (USE_RFORK) | 10 #if (NGX_USE_RFORK) |
11 | 11 |
12 #include <sys/ipc.h> | 12 #include <sys/ipc.h> |
13 #include <sys/sem.h> | 13 #include <sys/sem.h> |
14 #include <sched.h> | 14 #include <sched.h> |
15 | 15 |
44 #define ngx_log_tid ngx_thread_self() | 44 #define ngx_log_tid ngx_thread_self() |
45 | 45 |
46 #endif | 46 #endif |
47 | 47 |
48 | 48 |
49 ngx_int_t ngx_init_threads(int n, size_t size, ngx_log_t *log); | 49 ngx_int_t ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle); |
50 int ngx_create_thread(ngx_tid_t *tid, int (*func)(void *arg), void *arg, | 50 int ngx_create_thread(ngx_tid_t *tid, int (*func)(void *arg), void *arg, |
51 ngx_log_t *log); | 51 ngx_log_t *log); |
52 ngx_tid_t ngx_thread_self(); | 52 ngx_tid_t ngx_thread_self(); |
53 | 53 |
54 ngx_mutex_t *ngx_mutex_init(ngx_log_t *log, uint flags); | 54 ngx_mutex_t *ngx_mutex_init(ngx_log_t *log, uint flags); |