diff options
Diffstat (limited to 'src/os/win32/ngx_thread.c')
| -rw-r--r-- | src/os/win32/ngx_thread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os/win32/ngx_thread.c b/src/os/win32/ngx_thread.c index f8cedd2a5..120ce8673 100644 --- a/src/os/win32/ngx_thread.c +++ b/src/os/win32/ngx_thread.c @@ -18,11 +18,14 @@ ngx_err_t ngx_create_thread(ngx_tid_t *tid, ngx_thread_value_t (__stdcall *func)(void *arg), void *arg, ngx_log_t *log) { + u_long id; ngx_err_t err; - *tid = CreateThread(NULL, stack_size, func, arg, 0, NULL); + *tid = CreateThread(NULL, stack_size, func, arg, 0, &id); if (*tid != NULL) { + ngx_log_error(NGX_LOG_NOTICE, log, 0, + "create thread " NGX_TID_T_FMT, id); return 0; } |
