Mercurial > hg > nginx-quic
view src/os/unix/ngx_pthread.c @ 269:f082cb6bcdd7
nginx-0.0.2-2004-02-25-18:46:57 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 25 Feb 2004 15:46:57 +0000 |
parents | 0e81ac0bb3e2 |
children |
line wrap: on
line source
#include <ngx_config.h> #include <ngx_log.h> #include <ngx_pthread.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) { int err; pthread_attr_t *attr; attr = NULL; err = pthread_create(tid, attr, func, arg); if (err != 0) { ngx_log_error(NGX_LOG_ERR, log, err, "pthread_create() failed"); return NGX_ERROR; } return NGX_OK; }