Mercurial > hg > nginx-quic
view src/os/win32/ngx_os_thread.c @ 70:e320bf51c4e3
nginx-0.0.1-2003-03-25-18:40:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 25 Mar 2003 15:40:51 +0000 |
parents | 0e81ac0bb3e2 |
children |
line wrap: on
line source
#include <ngx_config.h> #include <ngx_log.h> #include <ngx_os_thread.h> int ngx_create_os_thread(ngx_os_tid_t *tid, void *stack, ngx_thread_start_routine_t func, void *arg, ngx_log_t log) { ngx_os_tid_t id; int dummy; /* needed in Win9X only, in NT can be NULL */ id = CreateThread(NULL, stack_size, func, arg, 0, &dummy); if (id == NULL) { ngx_log_error(NGX_LOG_ERR, log, err, "CreateThread() failed"); return NGX_ERROR; } *tid = id; return NGX_OK; }