Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Protected Member Functions
IlsTcpTimerManager Class Reference

This class is a subclass of IlsTimerManager merged to the TCP communication layer. More...

#include <ilserver/mvtcp/timer.h>

Inheritance diagram for IlsTcpTimerManager:
IlsTimerManager

Protected Member Functions

virtual void triggerTimer (IlsTimer &t)
 This method is called by the timer manager thread for each timer that must be triggered at the current time. More...
 

Detailed Description

This class is a subclass of IlsTimerManager merged to the TCP communication layer.

Library: mvtcp

Instead of invoking the timer callback function from the timer manager thread when the timer expires, this class posts a message to the MvTCP mainloop. This message is then handled by the main thread. The handling of the message triggers the timer callback, which is called from the main thread.

This timer manager is automatically installed when the MvTCP communication layer is used. Timers should not be used before the communication layer is initialized, but only after the static member function IlsTcpMvProcess::Initialize() has been called.

See also
IlsTcpMvProcess, IlsTimer.

Member Function Documentation

◆ triggerTimer()

virtual void IlsTcpTimerManager::triggerTimer ( IlsTimer t)
protectedvirtual

This method is called by the timer manager thread for each timer that must be triggered at the current time.

It posts a message to the MvTCP mainloop using the static member function IlsTcpLoopback::InvokeLater(). When the main thread handles this message, it will call the timer callback.

Parameters
ttimer

Reimplemented from IlsTimerManager.