From 6bb64c5ff160aacdef9150e4840358b2a4d209fe Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Sat, 1 Jul 2006 10:30:03 +0000 Subject: [PATCH] add reentrance support to the pthread mutex, thx to Shen Lei git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@688 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/Threads.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/loki/Threads.h b/include/loki/Threads.h index 5eb503f..c94a7ac 100644 --- a/include/loki/Threads.h +++ b/include/loki/Threads.h @@ -108,9 +108,9 @@ #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); // use reentrance support -#ifdef PTHREAD_MUTEX_RECURSIVE +#if defined(PTHREAD_MUTEX_RECURSIVE) #define LOKI_THREADS_MUTEX_INIT(x) ::pthread_mutex_init(x, PTHREAD_MUTEX_RECURSIVE) -#elif PTHREAD_MUTEX_RECURSIVE_NP +#elif defined(PTHREAD_MUTEX_RECURSIVE_NP) #define LOKI_THREADS_MUTEX_INIT(x) ::pthread_mutex_init(x, PTHREAD_MUTEX_RECURSIVE_NP) #else #define LOKI_THREADS_MUTEX_INIT(x) ::pthread_mutex_init(x, 0) @@ -417,6 +417,9 @@ namespace Loki #endif // $Log$ +// Revision 1.31 2006/07/01 10:30:03 syntheticpp +// add reentrance support to the pthread mutex, thx to Shen Lei +// // Revision 1.30 2006/07/01 10:26:25 syntheticpp // add reentrance support to the pthread mutex, thx to Shen Lei //