Mercurial > hg > nginx
diff src/os/win32/ngx_thread.h @ 6038:94ce52db3367
Removed stub implementation of win32 mutexes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 23 Mar 2015 13:52:47 +0300 |
parents | d620f497c50f |
children | 16c51e80128c |
line wrap: on
line diff
--- a/src/os/win32/ngx_thread.h +++ b/src/os/win32/ngx_thread.h @@ -18,12 +18,6 @@ typedef DWORD ngx_tls_key_t; typedef DWORD ngx_thread_value_t; -typedef struct { - HANDLE mutex; - ngx_log_t *log; -} ngx_mutex_t; - - ngx_err_t ngx_create_thread(ngx_tid_t *tid, ngx_thread_value_t (__stdcall *func)(void *arg), void *arg, ngx_log_t *log); ngx_int_t ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle); @@ -34,25 +28,10 @@ ngx_err_t ngx_thread_set_tls(ngx_tls_key #define ngx_thread_set_tls_n "TlsSetValue()" #define ngx_thread_get_tls TlsGetValue - -#define ngx_thread_volatile volatile - #define ngx_log_tid GetCurrentThreadId() #define NGX_TID_T_FMT "%ud" -ngx_mutex_t *ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags); - -void ngx_mutex_lock(ngx_mutex_t *m); -ngx_int_t ngx_mutex_trylock(ngx_mutex_t *m); -void ngx_mutex_unlock(ngx_mutex_t *m); - - -/* STUB */ -#define NGX_MUTEX_LIGHT 0 -/**/ - - extern ngx_int_t ngx_threads_n;