HDK
|
#include <UT_TaskLock.h>
Public Types | |
using | Scope = UT_UniqueLock< UT_TaskLockT< NESTED >> |
Class for auto-unlocking. More... | |
Public Member Functions | |
UT_TaskLockT () | |
~UT_TaskLockT () | |
int | numWaitingThreads () const |
void | lock () |
void | lock (bool &was_first) |
bool | timedLock (int timeout) |
bool | tryLock () |
bool | safeLock () |
void | unlock () |
bool | hasLock () |
Friends | |
class | Scope |
A recursive mutex class for synchronizing amongst tasks defined by UT_TaskScope.
The assumptions that UT_TaskScope uses for tasks are:
Requirements:
Definition at line 49 of file UT_TaskLock.h.
using UT_TaskLockT< NESTED >::Scope = UT_UniqueLock<UT_TaskLockT<NESTED>> |
Class for auto-unlocking.
Definition at line 272 of file UT_TaskLock.h.
|
inline |
Definition at line 212 of file UT_TaskLock.h.
|
inline |
Definition at line 216 of file UT_TaskLock.h.
|
inline |
Definition at line 266 of file UT_TaskLock.h.
|
inline |
Definition at line 227 of file UT_TaskLock.h.
|
inline |
Same as lock() except it also returns if it was the first time this task scope obtained the lock (ie. non-recursively).
Definition at line 236 of file UT_TaskLock.h.
|
inline |
Definition at line 222 of file UT_TaskLock.h.
|
inline |
Definition at line 255 of file UT_TaskLock.h.
|
inline |
Definition at line 242 of file UT_TaskLock.h.
|
inline |
Definition at line 250 of file UT_TaskLock.h.
|
inline |
Definition at line 261 of file UT_TaskLock.h.
Definition at line 52 of file UT_TaskLock.h.