void rmutexUnlock(RMutex *m)
Unlocks a recursive mutex.
void mutexLock(Mutex *m)
Locks a mutex.
void rmutexLock(RMutex *m)
Locks a recursive mutex.
static void rmutexInit(RMutex *m)
Initializes a recursive mutex.
Definition: mutex.h:57
#define INVALID_HANDLE
Invalid handle.
Definition: types.h:92
bool mutexTryLock(Mutex *m)
Attempts to lock a mutex without waiting.
_LOCK_RECURSIVE_T RMutex
Recursive mutex datatype, defined in newlib.
Definition: mutex.h:14
static void mutexInit(Mutex *m)
Initializes a mutex.
Definition: mutex.h:21
_LOCK_T Mutex
Mutex datatype, defined in newlib.
Definition: mutex.h:12
bool mutexIsLockedByCurrentThread(const Mutex *m)
Gets whether the current thread owns the mutex.
bool rmutexTryLock(RMutex *m)
Attempts to lock a recursive mutex without waiting.
void mutexUnlock(Mutex *m)
Unlocks a mutex.