comparison 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
comparison
equal deleted inserted replaced
3908:8258eb4c9d25 3909:0daede16d68b
45 45
46 if [ $osreldate -gt 502103 ]; then 46 if [ $osreldate -gt 502103 ]; then
47 echo " + sendfile()'s SF_NODISKIO found" 47 echo " + sendfile()'s SF_NODISKIO found"
48 48
49 have=NGX_HAVE_AIO_SENDFILE . auto/have 49 have=NGX_HAVE_AIO_SENDFILE . auto/have
50 fi
51
52 # POSIX semaphores
53 # http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127545
54
55 if [ $osreldate -ge 701106 ]; then
56 echo " + POSIX semaphores should work"
57 else
58 have=NGX_HAVE_POSIX_SEM . auto/nohave
50 fi 59 fi
51 60
52 61
53 # kqueue 62 # kqueue
54 63