VEX V5 C++ API
|
Use this class to create and control mutexes. More...
Public Member Functions | |
mutex () | |
~mutex () | |
void | lock () |
Locks the mutex and blocks if the mutex is not available. More... | |
bool | try_lock () |
Try to lock the mutex and returns if the mutex is not available. More... | |
void | unlock () |
Unlocks the mutex. More... | |
Use this class to create and control mutexes.
vex::mutex::mutex | ( | ) |
vex::mutex::~mutex | ( | ) |
void vex::mutex::lock | ( | ) |
Locks the mutex and blocks if the mutex is not available.
bool vex::mutex::try_lock | ( | ) |
Try to lock the mutex and returns if the mutex is not available.
void vex::mutex::unlock | ( | ) |
Unlocks the mutex.