A mutex with timeout capabilities. More...
#include <timedLock.h>


Public Member Functions | |
| TimedLock () | |
| Construct a new timed lock. | |
| ~TimedLock () | |
| Destruct the lock. | |
| bool | set (const uint32_t timeout=EQ_TIMEOUT_INDEFINITE) |
| Set the lock. | |
| void | unset () |
| Release the lock. | |
| bool | trySet () |
| Attempt to set the lock. | |
| bool | isSet () |
| Test if the lock is set. | |
A mutex with timeout capabilities.
Definition at line 31 of file timedLock.h.
| eq::base::TimedLock::TimedLock | ( | ) |
Construct a new timed lock.
Definition at line 45 of file timedLock.cpp.
References EQERROR.
| eq::base::TimedLock::~TimedLock | ( | ) |
| bool eq::base::TimedLock::set | ( | const uint32_t | timeout = EQ_TIMEOUT_INDEFINITE |
) |
Set the lock.
| timeout | the timeout in milliseconds to wait for the lock, or EQ_TIMEOUT_INDEFINITE to wait indefinitely. |
Definition at line 73 of file timedLock.cpp.
| void eq::base::TimedLock::unset | ( | ) |
| bool eq::base::TimedLock::trySet | ( | ) |
Attempt to set the lock.
Definition at line 125 of file timedLock.cpp.
| bool eq::base::TimedLock::isSet | ( | ) |
Test if the lock is set.
Definition at line 141 of file timedLock.cpp.
0.9.1 by
1.6.1