#include <timer.h>
|
typedef boost::function< bool(void)> | Handler |
|
typedef boost::function< void(std::string, std::string, std::string)> | ErrorHandler |
|
Definition at line 54 of file timer.h.
◆ ErrorHandler
◆ Handler
◆ TimerPtr
◆ TimerState
Enumerator |
---|
Init | |
Running | |
Fired | |
Cancelled | |
Definition at line 138 of file timer.h.
◆ Timer()
Timer::Timer |
( |
boost::asio::io_context & |
service, |
|
|
const std::string & |
name, |
|
|
int |
task_id, |
|
|
int |
task_instance, |
|
|
bool |
delete_on_completion = false |
|
) |
| |
◆ ~Timer()
◆ Cancel()
◆ cancelled()
bool Timer::cancelled |
( |
| ) |
const |
|
inline |
◆ Description()
virtual std::string Timer::Description |
( |
| ) |
|
|
inlinevirtual |
◆ Fire()
◆ fired()
bool Timer::fired |
( |
| ) |
const |
|
inline |
◆ GetElapsedTime()
int64_t Timer::GetElapsedTime |
( |
| ) |
const |
◆ GetTimerInstanceId()
static int Timer::GetTimerInstanceId |
( |
| ) |
|
|
inlinestaticprivate |
◆ GetTimerTaskId()
static int Timer::GetTimerTaskId |
( |
| ) |
|
|
inlinestaticprivate |
◆ Idle()
bool Timer::Idle |
( |
| ) |
const |
|
inline |
◆ IsDeleteOnCompletion()
bool Timer::IsDeleteOnCompletion |
( |
| ) |
const |
|
inline |
◆ Reschedule()
bool Timer::Reschedule |
( |
int |
time | ) |
|
◆ running()
bool Timer::running |
( |
| ) |
const |
|
inline |
◆ SetState()
◆ Start()
◆ StartTimerTask()
void Timer::StartTimerTask |
( |
TimerPtr |
reference, |
|
|
int |
time, |
|
|
uint32_t |
seq_no, |
|
|
const boost::system::error_code & |
ec |
|
) |
| |
|
private |
◆ time()
int Timer::time |
( |
| ) |
const |
|
inline |
◆ intrusive_ptr_add_ref
void intrusive_ptr_add_ref |
( |
Timer * |
timer | ) |
|
|
friend |
◆ intrusive_ptr_release
void intrusive_ptr_release |
( |
Timer * |
timer | ) |
|
|
friend |
◆ TimerManager
◆ TimerTest
◆ delete_on_completion_
bool Timer::delete_on_completion_ |
|
private |
◆ error_handler_
◆ handler_
◆ impl_
◆ mutex_
◆ name_
◆ refcount_
tbb::atomic<int> Timer::refcount_ |
|
private |
◆ seq_no_
◆ state_
◆ task_id_
◆ task_instance_
int Timer::task_instance_ |
|
private |
◆ time_
◆ timer_task_
The documentation for this class was generated from the following files: