From 0d6ece00397ebb9215ccf1af06cce22c3a94197e Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 28 Aug 2022 11:25:44 -0500 Subject: begin plibsys refactor --- src/mutex.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/mutex.h (limited to 'src/mutex.h') 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 -typedef HANDLE mossrose_mutex_t; -#else -#include -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 -- cgit v1.2.1