39#include "blocxx/BLOCXX_config.h"
75 "NonRecursiveMutexImpl::acquireMutex returned with error");
#define BLOCXX_DEFINE_EXCEPTION_WITH_ID(NAME)
Define a new exception class named <NAME>Exception that derives from Exception.
#define BLOCXX_THROW(exType, msg)
Throw an exception using FILE and LINE.
void acquire()
Acquire ownership of this NonRecursiveMutex object.
void conditionPreWait(NonRecursiveMutexLockState &state)
bool release()
Release ownership of this NonRecursiveMutex object.
void conditionPostWait(NonRecursiveMutexLockState &state)
NonRecursiveMutex_t m_mutex
NonRecursiveMutex()
Create a new NonRecursiveMutex object.
~NonRecursiveMutex()
Destroy this NonRecursiveMutex object.
BLOCXX_COMMON_API int conditionPostWait(NonRecursiveMutex_t &handle, NonRecursiveMutexLockState &state)
BLOCXX_COMMON_API int destroyMutex(NonRecursiveMutex_t &handle)
Destroy a mutex previously created with createMutex.
BLOCXX_COMMON_API int acquireMutex(NonRecursiveMutex_t &handle)
Acquire the mutex specified by a given mutex handle.
BLOCXX_COMMON_API int releaseMutex(NonRecursiveMutex_t &handle)
Release a mutex that was previously acquired with the acquireMutex method.
BLOCXX_COMMON_API int conditionPreWait(NonRecursiveMutex_t &handle, NonRecursiveMutexLockState &state)
BLOCXX_COMMON_API int createMutex(NonRecursiveMutex_t &handle)
Create a platform specific mutext handle.