mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 04:52:25 +00:00
use SwitchToThread() instead of Sleep(0), because the later
may not yield control, if there is no thread with higher priority
This commit is contained in:
parent
3d86ad3f95
commit
cc878dc6ac
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, char *name, ngx_int_t respawn);
|
|||
ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx);
|
||||
|
||||
#define ngx_debug_point()
|
||||
#define ngx_sched_yield() Sleep(0)
|
||||
#define ngx_sched_yield() SwitchToThread()
|
||||
|
||||
|
||||
#define NGX_MAX_PROCESSES (MAXIMUM_WAIT_OBJECTS - 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue