#include <timedLock.h>


Public Member Functions | |
| TimedLock () | |
| Constructs a new timed lock. | |
| ~TimedLock () | |
| Destructs the lock. | |
| bool | set (const uint32_t timeout=EQ_TIMEOUT_INDEFINITE) |
| Set the lock. | |
| void | unset () |
| Releases the lock. | |
| bool | trySet () |
| Attempts to set the lock. | |
| bool | test () |
| Tests if the lock is set. | |
Definition at line 33 of file timedLock.h.
| eq::base::TimedLock::TimedLock | ( | ) |
| 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. |
true if the lock was acquired, false if not. Definition at line 73 of file timedLock.cpp.
| bool eq::base::TimedLock::trySet | ( | ) |
Attempts to set the lock.
true if the lock was acquired, false if not. Definition at line 124 of file timedLock.cpp.
| bool eq::base::TimedLock::test | ( | ) |
Tests if the lock is set.
true if the lock is set, false if it is not set. Definition at line 140 of file timedLock.cpp.
0.9 by
1.5.8