Lines 1-13
Link Here
|
1 |
--- src/pj_mutex.c.orig 2015-05-25 16:01:14.724346000 +0800 |
1 |
--- src/pj_mutex.c.orig 2016-04-02 07:44:36.012729000 -0700 |
2 |
+++ src/pj_mutex.c 2015-05-25 16:03:52.777784000 +0800 |
2 |
+++ src/pj_mutex.c 2016-04-02 07:46:34.022406000 -0700 |
3 |
@@ -118,11 +118,7 @@ |
3 |
@@ -122,11 +122,7 @@ |
4 |
pthread_mutex_lock( &pj_precreated_lock); |
4 |
pthread_mutex_lock( &pj_precreated_lock); |
5 |
|
5 |
|
6 |
pthread_mutexattr_init(&mutex_attr); |
6 |
pthread_mutexattr_init(&mutex_attr); |
7 |
-#ifndef PTHREAD_MUTEX_RECURSIVE |
7 |
-#ifdef HAVE_PTHREAD_MUTEX_RECURSIVE |
8 |
- pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE_NP); |
|
|
9 |
-#else |
10 |
pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); |
8 |
pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); |
|
|
9 |
-#else |
10 |
- pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE_NP); |
11 |
-#endif |
11 |
-#endif |
12 |
pthread_mutex_init(&pj_core_lock, &mutex_attr); |
12 |
pthread_mutex_init(&pj_core_lock, &mutex_attr); |
13 |
pj_core_lock_created = 1; |
13 |
pj_core_lock_created = 1; |