|
|
|
Home / Open source / Terimber 2.0
timer Class Referencetimer
More...
#include <timer.h>
List of all members.
Detailed Description
timer
Definition at line 55 of file timer.h.
Constructor & Destructor Documentation
BEGIN_TERIMBER_NAMESPACE timer::timer |
( |
|
) |
|
Member Function Documentation
void timer::activate |
( |
timer_callback * |
callback, |
|
|
size_t |
ident, |
|
|
size_t |
interval, |
|
|
size_t |
multiplier = 1 , |
|
|
bool |
reactivate = true | |
|
) |
| | |
activates the timer
- Parameters:
-
callback |
user callback |
ident |
timer ident, one timer callback object can handle multiple timers |
interval |
repeatition interval in milliseconds |
multiplier |
multiplier coefficient for repeatition interval |
reactivate |
reactivate flag (repeat firing timer events |
Definition at line 50 of file timer.cpp.
References _callback, _first, _ident, _interval, _mtx, _multiplier, _reactivate, _thread, _trigger, thread::assign_job(), deactivate(), and thread::start().
Referenced by daemon::daemon_start(), and msg_communicator::v_on().
void timer::deactivate |
( |
|
) |
|
bool timer::v_has_job |
( |
size_t |
ident, |
|
|
void * |
user_data | |
|
) |
| | [protected, virtual] |
void timer::v_do_job |
( |
size_t |
ident, |
|
|
void * |
user_data | |
|
) |
| | [protected, virtual] |
Member Data Documentation
The documentation for this class was generated from the following files:
|
|
|
|