Condition variable functions in separate DLL
[yaz-moved-to-github.git] / src / mutex-p.h
diff --git a/src/mutex-p.h b/src/mutex-p.h
new file mode 100644 (file)
index 0000000..783f119
--- /dev/null
@@ -0,0 +1,15 @@
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2010 Index Data
+ * See the file LICENSE for details.
+ */
+
+struct yaz_mutex {
+#ifdef WIN32
+    CRITICAL_SECTION handle;
+#elif YAZ_POSIX_THREADS
+    pthread_mutex_t handle;
+#endif
+    char *name;
+    int log_level;
+};
+