aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_freebsd_rfork_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_freebsd_rfork_thread.h')
-rw-r--r--src/os/unix/ngx_freebsd_rfork_thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_rfork_thread.h b/src/os/unix/ngx_freebsd_rfork_thread.h
index a9eb1d824..462554f28 100644
--- a/src/os/unix/ngx_freebsd_rfork_thread.h
+++ b/src/os/unix/ngx_freebsd_rfork_thread.h
@@ -15,6 +15,14 @@ typedef pid_t ngx_tid_t;
#define TID_T_FMT PID_T_FMT
+extern void **ngx_tls;
+
+#define ngx_thread_create_tls() 0
+#define ngx_thread_create_tls_n ""
+#define ngx_thread_get_tls() ngx_tls[ngx_gettid()]
+ngx_int_t ngx_thread_set_tls(void *value);
+
+
#define NGX_MUTEX_LIGHT 1
#define NGX_MUTEX_LOCK_BUSY 0x80000000