11 #ifndef __UT_TIMEGATE_H_INCLUDED__
12 #define __UT_TIMEGATE_H_INCLUDED__
16 namespace UT_TimeGateImpl
26 template <
int TIMEOUT_MS>
41 bool ok = (tick - myTickCount) > ((TIMEOUT_MS + 99) / 100);
52 return (tick - myTickCount) > ((TIMEOUT_MS + 99) / 100);
64 volatile int myTickCount;
74 , myTickThresholdInTenths(1)
81 myTickThresholdInTenths = (threshold_ms + 99) / 100;
89 bool ok = (tick - myTickCount) > myTickThresholdInTenths;
100 return (tick - myTickCount) > myTickThresholdInTenths;
112 volatile int myTickCount;
113 int myTickThresholdInTenths;
116 #endif // __UT_TIMEGATE_H_INCLUDED__
UT_API void startClockThreadIfNeeded()
UT_API volatile int theClockCount
void setThreshold(int threshold_ms)