This class is a subclass of IlsTimerManager
merged to the TCP communication layer.
More...
#include <ilserver/mvtcp/timer.h>
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... | |
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.
IlsTcpMvProcess
, IlsTimer
.
|
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.
t | timer |
Reimplemented from IlsTimerManager.