diff src/os/unix/ngx_posix_config.h @ 3909:0daede16d68b

use POSIX semaphores in shmtx instead of sched_yield() number of spinlock spins are increased twice
author Igor Sysoev <igor@sysoev.ru>
date Tue, 10 May 2011 11:39:13 +0000
parents 6060225e9261
children 1b779cb69dc8 4919fb357a5d
line wrap: on
line diff
--- a/src/os/unix/ngx_posix_config.h
+++ b/src/os/unix/ngx_posix_config.h
@@ -96,6 +96,11 @@
 #include <ngx_auto_config.h>
 
 
+#if (NGX_HAVE_POSIX_SEM)
+#include <semaphore.h>
+#endif
+
+
 #if (NGX_HAVE_POLL)
 #include <poll.h>
 #endif