summaryrefslogtreecommitdiffhomepage
path: root/auto/threads
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-12-19 10:23:57 -0800
committerKonstantin Pavlov <thresh@nginx.com>2024-12-19 10:23:57 -0800
commitd8acad350a52a20918c46c09cb0a0f5479400923 (patch)
tree7d9c4b64daa60d3ac121743dfa3735c6fc5687a4 /auto/threads
parent624debcf17ea7faab01fa841bd4dcd9f308cf306 (diff)
parent27bde184dedcbf687db2f314c60c037623318a8d (diff)
downloadunit-1.34.0-1.tar.gz
unit-1.34.0-1.tar.bz2
Merge tag '1.34.0' into packaging1.34.0-1
Unit 1.34.0 release.
Diffstat (limited to 'auto/threads')
-rw-r--r--auto/threads50
1 files changed, 0 insertions, 50 deletions
diff --git a/auto/threads b/auto/threads
index 67b46690..ca4d1304 100644
--- a/auto/threads
+++ b/auto/threads
@@ -73,56 +73,6 @@ if [ $nxt_found = no ]; then
fi
-# FreeBSD, Solaris, AIX.
-
-nxt_feature="pthread spinlock"
-nxt_feature_name=NXT_HAVE_PTHREAD_SPINLOCK
-nxt_feature_run=yes
-nxt_feature_incs=
-nxt_feature_libs=$NXT_PTHREAD
-nxt_feature_test="#include <pthread.h>
-
- int main(void) {
- pthread_spinlock_t lock;
-
- if (pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE) != 0)
- return 1;
- if (pthread_spin_lock(&lock) != 0)
- return 1;
- if (pthread_spin_unlock(&lock) != 0)
- return 1;
- if (pthread_spin_destroy(&lock) != 0)
- return 1;
- return 0;
- }"
-. auto/feature
-
-
-if [ $nxt_found = yes ]; then
-
- # Linux glibc uses 0 as pthread_spinlock_t initial value on the most
- # platforms. However, on i386 and x86_64 the initial value is 1.
-
- nxt_feature="pthread spinlock zero initial value"
- nxt_feature_name=NXT_HAVE_PTHREAD_SPINLOCK_ZERO
- nxt_feature_run=yes
- nxt_feature_incs=
- nxt_feature_libs=$NXT_PTHREAD
- nxt_feature_test="#include <pthread.h>
-
- pthread_spinlock_t lock = 0;
-
- int main(void) {
- if (pthread_spin_trylock(&lock) != 0)
- return 1;
- if (pthread_spin_unlock(&lock) != 0)
- return 1;
- return 0;
- }"
- . auto/feature
-fi
-
-
nxt_feature="sem_timedwait()"
nxt_feature_name=NXT_HAVE_SEM_TIMEDWAIT
nxt_feature_run=yes