From: Adam Dickmeiss Date: Wed, 11 Aug 2010 07:22:38 +0000 (+0200) Subject: Revert mutex with flags and omit include pthread.h X-Git-Tag: v1.4.4~3^2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=d92498ad9f019ce92a97f5a9664a08cf91b194a5;p=pazpar2-moved-to-github.git Revert mutex with flags and omit include pthread.h --- 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