From d92498ad9f019ce92a97f5a9664a08cf91b194a5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 11 Aug 2010 09:22:38 +0200 Subject: [PATCH] Revert mutex with flags and omit include pthread.h --- src/ppmutex.c | 8 ++------ src/ppmutex.h | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ppmutex.c b/src/ppmutex.c index c74cac1..c389db4 100644 --- a/src/ppmutex.c +++ b/src/ppmutex.c @@ -36,17 +36,13 @@ void pazpar2_mutex_init(void) ppmutex_level = yaz_log_module_level("mutex"); } -void pazpar2_mutex_create_flag(YAZ_MUTEX *p, const char *name, int flags) +void pazpar2_mutex_create(YAZ_MUTEX *p, const char *name) { assert(p); - yaz_mutex_create_attr(p, flags); + yaz_mutex_create(p); yaz_mutex_set_name(*p, ppmutex_level, name); } -void pazpar2_mutex_create(YAZ_MUTEX *p, const char *name) { - pazpar2_mutex_create_flag(p, name, 0); -} - /* * Local variables: * c-basic-offset: 4 diff --git a/src/ppmutex.h b/src/ppmutex.h index 20b2403..d924e7f 100644 --- a/src/ppmutex.h +++ b/src/ppmutex.h @@ -25,11 +25,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define PAZPAR2_PPMUTEXF_H #include -#include void pazpar2_mutex_init(void); -void pazpar2_mutex_create_flag(YAZ_MUTEX *p, const char *name, int flags); void pazpar2_mutex_create(YAZ_MUTEX *p, const char *name); #endif -- 1.7.10.4