comparison src/os/unix/ngx_thread.h @ 6028:fa77496b1df2

Removed old FreeBSD rfork() thread implementation.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Mar 2015 06:43:19 +0300
parents 466bd63b63d1
children e284f3ff6831
comparison
equal deleted inserted replaced
6027:67717d4e4f47 6028:fa77496b1df2
13 #include <ngx_core.h> 13 #include <ngx_core.h>
14 14
15 #if (NGX_OLD_THREADS) 15 #if (NGX_OLD_THREADS)
16 16
17 #define NGX_MAX_THREADS 128 17 #define NGX_MAX_THREADS 128
18
19 #if (NGX_USE_RFORK)
20 #include <ngx_freebsd_rfork_thread.h>
21
22
23 #else /* use pthreads */
24 18
25 #include <pthread.h> 19 #include <pthread.h>
26 20
27 typedef pthread_t ngx_tid_t; 21 typedef pthread_t ngx_tid_t;
28 22
67 61
68 62
69 ngx_int_t ngx_mutex_trylock(ngx_mutex_t *m); 63 ngx_int_t ngx_mutex_trylock(ngx_mutex_t *m);
70 void ngx_mutex_lock(ngx_mutex_t *m); 64 void ngx_mutex_lock(ngx_mutex_t *m);
71 void ngx_mutex_unlock(ngx_mutex_t *m); 65 void ngx_mutex_unlock(ngx_mutex_t *m);
72
73 #endif
74 66
75 67
76 #define ngx_thread_volatile volatile 68 #define ngx_thread_volatile volatile
77 69
78 70