ARC SDK
|
Mutex which allows a timeout on locking. More...
#include <arc/Thread.h>
Public Member Functions | |
bool | lock (int t=-1) |
Lock mutex, but wait no longer than t milliseconds. More... | |
bool | trylock (void) |
Returns true if mutex is currently locked, but does not attempt to acquire lock. | |
bool | unlock (void) |
Release mutex. | |
void | forceReset (void) |
This method is meant to be used only after fork. More... | |
Mutex which allows a timeout on locking.
|
inline |
This method is meant to be used only after fork.
It resets state of all internal locks and variables.
|
inline |
Lock mutex, but wait no longer than t milliseconds.