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
#define PAZPAR2_PPMUTEXF_H
#include <yaz/mutex.h>
-#include <pthread.h>
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