Timers in Click
[email protected] Thu, 19 Dec 2013 11:23:19 +0100 (CET)
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <trinity-47965b7d-71ba-45fe-81b7-26011f9f5d5a-1387448599889@3capp-gmx-bs51> |
Hello,
I have a problem with understanding the whole timer stuff.
When using a timer you have a constructor like this:
PeriodicPrinter::PeriodicPrinter()
: _timer(this) // Sets _timer to call this->run_timer(&_timer)
{ // when it fires.
}
But what is this C++ construct called where this ": _timer(this)" is between the head of the class-constructor and the opening curly brace?
And how can I add there multiple timers? For example _timerA and _timerB?
Thanks in advance,
Thomas