Changeset 1750
- Timestamp:
- 11/11/11 18:56:10 (6 months ago)
- File:
-
- 1 edited
-
trunk/src/napi.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/napi.c
r1747 r1750 96 96 static pthread_mutex_t nx_mutex; 97 97 98 #ifdef PTHREAD_MUTEX_RECURSIVE 99 #define RECURSIVE_LOCK PTHREAD_MUTEX_RECURSIVE 100 #else 101 #define RECURSIVE_LOCK PTHREAD_MUTEX_RECURSIVE_NP 102 #endif /* PTHREAD_MUTEX_RECURSIVE */ 103 98 104 static void nx_pthread_init() 99 105 { 100 106 pthread_mutexattr_t attr; 101 107 pthread_mutexattr_init(&attr); 102 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);108 pthread_mutexattr_settype(&attr, RECURSIVE_LOCK); 103 109 pthread_mutex_init(&nx_mutex, &attr); 104 110 }
Note: See TracChangeset
for help on using the changeset viewer.
