diff auto/os/freebsd @ 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 113cd532b328
children d620f497c50f
line wrap: on
line diff
--- a/auto/os/freebsd
+++ b/auto/os/freebsd
@@ -49,6 +49,15 @@ if [ $osreldate -gt 502103 ]; then
     have=NGX_HAVE_AIO_SENDFILE . auto/have
 fi
 
+# POSIX semaphores
+# http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127545
+
+if [ $osreldate -ge 701106 ]; then
+    echo " + POSIX semaphores should work"
+else
+    have=NGX_HAVE_POSIX_SEM . auto/nohave
+fi
+
 
 # kqueue