26 #ifdef __pingtel_on_posix__ 27 #include "os/OsTime.h" 28 #include "os/OsCallback.h" 29 #include "os/OsTimer.h" 34 #define MILLI2SECS 1000 35 #define MILLI2NANO 1000000 187 IRTCPSession *piRTCPSession=NULL) {};
234 bool CreateTimerThread(
void);
256 static unsigned int __stdcall TimerThreadProc(
void * lpParameter);
258 #elif defined(_VXWORKS) 279 static void ReportingAlarm(timer_t tTimer, intptr_t iArgument);
281 #elif defined(__pingtel_on_posix__) 283 static void ReportingAlarm(
const intptr_t userData,
const intptr_t eventData);
302 struct itimerspec m_stTimeout;
317 HANDLE m_hTerminateEvent;
329 HANDLE m_hTimerThread;
331 #elif defined(_VXWORKS) 344 #elif defined(__pingtel_on_posix__) 346 OsCallback * m_pCallback;
376 m_stTimeout.it_value.tv_sec = ulTimerPeriod /
MILLI2SECS;
380 m_stTimeout.it_interval.tv_sec = ulTimerPeriod /
MILLI2SECS;
#define MILLI2NANO
Definition: RTCPTimer.h:35
#define MILLI2SECS
Definition: RTCPTimer.h:34
virtual ~CRTCPTimer(void)
virtual unsigned long GetReportTimer(void)
Definition: RTCPTimer.h:402
virtual void RTCPReportingAlarm(IRTCPConnection *piRTCPConnection=NULL, IRTCPSession *piRTCPSession=NULL)
Definition: RTCPTimer.h:186
unsigned long m_ulTimerPeriod
Definition: RTCPTimer.h:300
virtual void SetReportTimer(unsigned long ulTimerPeriod)
Definition: RTCPTimer.h:370
Definition: RTCPTimer.h:52
CRTCPTimer(unsigned long ulTimerPeriod)