IlsTcpTimerManager
Category
Server class
Inheritance Path
IlsTimerManager➥ IlsTcpTimerManager Description
This class is a subclass of IlsTimerManager. 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.
Library
Synopsis
class IlsTcpTimerManager:public IlsTimerManager{
protected:
virtual void triggerTimer(IlsTimer& t);
};
Protected Member Function
[virtual] void triggerTimer(IlsTimer& t);
This virtual member function is overriden from its counterpart in the parent class
IlsTimerManager. 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.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.