blob: a41b14cbb9b29850065a91e5f7afe99e90baddeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--- a/include/lsr/ls_lock.h
+++ b/include/lsr/ls_lock.h
@@ -52,16 +52,9 @@
extern "C" {
#endif
-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) \
- || defined(__FreeBSD__ ) || defined(__NetBSD__) || defined(__OpenBSD__)
-#define USE_F_MUTEX
-#define USE_MUTEX_ADAPTIVE
-
-#else
#undef USE_F_MUTEX
#define USE_MUTEX_LOCK
-#endif
#define USE_ATOMIC_SPIN
#define MAX_FUTEX_SPINCNT 10
--- a/src/lsr/ls_lock.c
+++ b/src/lsr/ls_lock.c
@@ -79,11 +79,7 @@
#else /* defined(USE_MUTEX_ADAPTIVE) */
/* pthread_mutexattr_settype(&myAttr, PTHREAD_MUTEX_NORMAL); */
pthread_mutexattr_settype(&myAttr,
-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__)
- PTHREAD_MUTEX_ERRORCHECK_NP
-#else /* defined(linux) */
PTHREAD_MUTEX_ERRORCHECK
-#endif /* defined(linux) */
);
#endif /* defined(USE_MUTEX_ADAPTIVE) */
/* pthread_mutexattr_settype(&myAttr, PTHREAD_MUTEX_RECURSIVE); */
|