HDK
|
#include <UT_TimeGate.h>
Public Member Functions | |
UT_TimeGate () | |
bool | tryAcquire () |
bool | canAcquire () const |
void | acquire () |
Used to reduce the frequency of checks gated by a time out (in milliseconds at resolution of ~100ms). Note that the frequency is not guaranteed, esp. if you try to call tryAcquire() from multiple threads on the same UT_TimeGate object.
Definition at line 27 of file UT_TimeGate.h.
|
inline |
Definition at line 30 of file UT_TimeGate.h.
|
inline |
Resets the gate so that canAcquire()/tryAcquire() will return false until at least TIMEOUT_MS has elapsed.
Definition at line 57 of file UT_TimeGate.h.
|
inline |
Return true if at least TIMEOUT_MS has elapsed from the last call to acquire(), without actually acquiring.
Definition at line 49 of file UT_TimeGate.h.
|
inline |
Return true if at least TIMEOUT_MS has elapsed from the last time this method returned true. Resolution is ~100ms.
Definition at line 38 of file UT_TimeGate.h.