23 #ifndef __ccxx_IntervalTimer_hxx 24 #define __ccxx_IntervalTimer_hxx 65 {
return(_initialDelay); }
72 { _initialDelay = initialDelay; }
76 {
return(_interval); }
83 { _interval = interval; }
103 virtual void fired() = 0;
107 #ifdef CCXX_OS_WINDOWS 108 static void CALLBACK _callback(LPVOID arg, DWORD timerLowValue,
109 DWORD timerHighValue);
111 static void _callback(
union sigval data);
118 #if defined(CCXX_OS_WINDOWS) 120 #elif ! defined(CCXX_OS_MACOSX) 122 struct sigevent _event;
128 #endif // __ccxx_IntervalTimer_hxx
bool isRunning() const
Determine if the timer is currently running.
Definition: IntervalTimer.h++:86
uint_t getInterval() const
Get the interval, in milliseconds.
Definition: IntervalTimer.h++:75
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
void setInterval(uint_t interval)
Set the interval, in milliseconds.
Definition: IntervalTimer.h++:82
uint_t getInitialDelay() const
Get the initial delay, in milliseconds.
Definition: IntervalTimer.h++:64
void setInitialDelay(uint_t initialDelay)
Set the initial delay, in milliseconds.
Definition: IntervalTimer.h++:71
#define COMMONCPP_API
Definition: Common.h++:126
A high-precision interval timer that does not require blocking or polling from a dedicated thread...
Definition: IntervalTimer.h++:46
Definition: AllocationMap.c++:25