threads (709:e1af38445a13) threads (765:7b63756a81a4)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6case "$NXT_SYSTEM" in
7
8 Linux)

--- 109 unchanged lines hidden (view full) ---

118 if (pthread_spin_unlock(&lock) != 0)
119 return 1;
120 return 0;
121 }"
122 . auto/feature
123fi
124
125
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6case "$NXT_SYSTEM" in
7
8 Linux)

--- 109 unchanged lines hidden (view full) ---

118 if (pthread_spin_unlock(&lock) != 0)
119 return 1;
120 return 0;
121 }"
122 . auto/feature
123fi
124
125
126if [ $nxt_found = no ]; then
127
128 # MacOSX spinlock(3).
129
130 nxt_feature="MacOSX spinlock"
131 nxt_feature_name=NXT_HAVE_MACOSX_SPINLOCK
132 nxt_feature_run=yes
133 nxt_feature_incs=
134 nxt_feature_libs=$NXT_PTHREAD
135 nxt_feature_test="#include <libkern/OSAtomic.h>
136
137 int main() {
138 OSSpinLock lock = 0;
139
140 if (OSSpinLockTry(&lock) == 0)
141 return 1;
142 OSSpinLockUnlock(&lock);
143 return 0;
144 }"
145 . auto/feature
146fi
147
148
149nxt_feature="sem_timedwait()"
150nxt_feature_name=NXT_HAVE_SEM_TIMEDWAIT
151nxt_feature_run=yes
152nxt_feature_incs=
153nxt_feature_libs=
154nxt_feature_test="#include <semaphore.h>
155
156 int main() {

--- 125 unchanged lines hidden ---
126nxt_feature="sem_timedwait()"
127nxt_feature_name=NXT_HAVE_SEM_TIMEDWAIT
128nxt_feature_run=yes
129nxt_feature_incs=
130nxt_feature_libs=
131nxt_feature_test="#include <semaphore.h>
132
133 int main() {

--- 125 unchanged lines hidden ---