summaryrefslogtreecommitdiff
path: root/auto/unix
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-05-10 11:39:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-05-10 11:39:13 +0000
commite2c8ad71221ebcf5ca6331811118f9a6d18aec45 (patch)
tree538d98e7b04df5ba091650e21cf3f04a9c4fa284 /auto/unix
parent9505277aa657590588504ae8f85e712f87d92ce6 (diff)
downloadnginx-e2c8ad71221ebcf5ca6331811118f9a6d18aec45.tar.gz
use POSIX semaphores in shmtx instead of sched_yield()
number of spinlock spins are increased twice
Diffstat (limited to 'auto/unix')
-rwxr-xr-xauto/unix12
1 files changed, 12 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index c2d3ba2e3..669314b42 100755
--- a/auto/unix
+++ b/auto/unix
@@ -234,6 +234,18 @@ ngx_feature_test="int id;
. auto/feature
+ngx_feature="POSIX semaphores"
+ngx_feature_name="NGX_HAVE_POSIX_SEM"
+ngx_feature_run=yes
+ngx_feature_incs="#include <semaphore.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="sem_t sem;
+ if (sem_init(&sem, 1, 0) == -1) return 1;
+ sem_destroy(&sem);"
+. auto/feature
+
+
ngx_feature="struct msghdr.msg_control"
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
ngx_feature_run=no