summaryrefslogtreecommitdiff
path: root/src/mutex.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-28 11:25:44 -0500
committersanine <sanine.not@pm.me>2022-08-28 11:25:44 -0500
commit0d6ece00397ebb9215ccf1af06cce22c3a94197e (patch)
tree022cc796822a998a59d8bf8896f02599ce6d3700 /src/mutex.h
parenta4dd0ad63c00f4dee3b86dfd3075d1d61b2b3180 (diff)
begin plibsys refactor
Diffstat (limited to 'src/mutex.h')
-rw-r--r--src/mutex.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/mutex.h b/src/mutex.h
deleted file mode 100644
index 84d1f63..0000000
--- a/src/mutex.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef MOSSROSE_MUTEX_H
-#define MOSSROSE_MUTEX_H
-
-
-#ifdef WIN32
-#include <windows.h>
-typedef HANDLE mossrose_mutex_t;
-#else
-#include <pthread.h>
-typedef pthread_mutex_t mossrose_mutex_t;
-#endif
-
-/* initialize a mutex */
-void mossrose_mutex_init(mossrose_mutex_t *mutex);
-
-/* lock a mutex, hanging until locked */
-void mossrose_mutex_lock(mossrose_mutex_t *mutex);
-
-/* attempt to lock a mutex. returns 0 on success and 1 otherwise */
-int mossrose_mutex_trylock(mossrose_mutex_t *mutex);
-
-/* unlock a mutex */
-void mossrose_mutex_unlock(mossrose_mutex_t *mutex);
-
-/* destroy a mutex */
-void mossrose_mutex_destroy(mossrose_mutex_t *mutex);
-
-#endif