comparison auto/unix @ 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 8258eb4c9d25
children c8884c8f7c74
comparison
equal deleted inserted replaced
3908:8258eb4c9d25 3909:0daede16d68b
232 if (id == -1) return 1; 232 if (id == -1) return 1;
233 shmctl(id, IPC_RMID, NULL);" 233 shmctl(id, IPC_RMID, NULL);"
234 . auto/feature 234 . auto/feature
235 235
236 236
237 ngx_feature="POSIX semaphores"
238 ngx_feature_name="NGX_HAVE_POSIX_SEM"
239 ngx_feature_run=yes
240 ngx_feature_incs="#include <semaphore.h>"
241 ngx_feature_path=
242 ngx_feature_libs=
243 ngx_feature_test="sem_t sem;
244 if (sem_init(&sem, 1, 0) == -1) return 1;
245 sem_destroy(&sem);"
246 . auto/feature
247
248
237 ngx_feature="struct msghdr.msg_control" 249 ngx_feature="struct msghdr.msg_control"
238 ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL" 250 ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
239 ngx_feature_run=no 251 ngx_feature_run=no
240 ngx_feature_incs="#include <sys/socket.h>" 252 ngx_feature_incs="#include <sys/socket.h>"
241 ngx_feature_path= 253 ngx_feature_path=