uThreads
0.3.0
|
#include <BlockingSync.h>
Public Member Functions | |
template<bool OL = false> | |
bool | acquire () |
acquire the mutex More... | |
void | release () |
release the Mutex | |
void | unlock () |
Protected Member Functions | |
template<bool OL> | |
bool | internalAcquire (mword timeout) |
void | internalRelease () |
Protected Attributes | |
std::mutex | lock |
BlockingQueue | bq |
uThread * | owner |
Friends | |
class | ConditionVariable |
class | Semaphore |
class | BlockingQueue |
A user-level Mutex.
|
inline |
acquire the mutex
The return value is only for when timeouts are implemented