src/os/win32/ngx_thread.h - nginx source code

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_THREAD_H_INCLUDED_
  6. #define _NGX_THREAD_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. typedef HANDLE  ngx_tid_t;
  10. typedef DWORD   ngx_thread_value_t;


  11. ngx_err_t ngx_create_thread(ngx_tid_t *tid,
  12.     ngx_thread_value_t (__stdcall *func)(void *arg), void *arg, ngx_log_t *log);

  13. #define ngx_log_tid                 GetCurrentThreadId()
  14. #define NGX_TID_T_FMT               "%ud"


  15. #endif /* _NGX_THREAD_H_INCLUDED_ */