summaryrefslogtreecommitdiff
path: root/mutex_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'mutex_helpers.h')
-rw-r--r--mutex_helpers.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mutex_helpers.h b/mutex_helpers.h
new file mode 100644
index 0000000..0cdc7b6
--- /dev/null
+++ b/mutex_helpers.h
@@ -0,0 +1,12 @@
+#ifndef _nebula2_mutex_helpers_h_
+#define _nebula2_mutex_helpers_h_
+
+#include <pthread.h>
+
+/* Creating a locked mutex */
+extern pthread_mutex_t* mutex_create();
+
+/* Destroy a mutex created by mutex_create */
+extern void mutex_destroy(pthread_mutex_t* mu);
+
+#endif