可定时服务
更多...
#include <TimerableService_V1.h>
◆ ~TimerableService()
TimerableService::~TimerableService |
( |
| ) |
|
|
override |
◆ cancelTimeoutEvent()
void TimerableService::cancelTimeoutEvent |
( |
TimeoutEvent * | timeout_event | ) |
|
◆ createTimeoutEvent()
TimeoutEvent * TimerableService::createTimeoutEvent |
( |
int | fd, |
|
|
void * | data, |
|
|
uint64_t | seconds ) |
◆ dispatch()
void TimerableService::dispatch |
( |
uint32_t | timeout | ) |
|
|
override |
◆ freeTimeoutEvent()
void TimerableService::freeTimeoutEvent |
( |
TimeoutEvent * | timeout_event | ) |
|
◆ getTimeoutEventByFd()
TimeoutEvent * TimerableService::getTimeoutEventByFd |
( |
int | fd | ) |
|
通过文件描述符获取超时事件结构
- 参数
-
- 返回值
-
- 返回
- 对应的超时事件结构
引用了 timeoutMap.
◆ init()
bool TimerableService::init |
( |
| ) |
|
|
override |
◆ onTimeout()
void TimerableService::onTimeout |
( |
TimeoutEvent * | timeout_event | ) |
|
|
virtual |
◆ setTimeoutEvent()
void TimerableService::setTimeoutEvent |
( |
TimeoutEvent * | timeout_event, |
|
|
uint64_t | seconds ) |
◆ startTimestamp
uint64_t sese::service::v1::TimerableService::startTimestamp {0} |
|
private |
◆ timeoutMap
std::map<int, TimeoutEvent *> sese::service::v1::TimerableService::timeoutMap |
|
private |
◆ timeoutTable
std::list<TimeoutEvent *> sese::service::v1::TimerableService::timeoutTable[60] {} |
|
private |
该类的文档由以下文件生成: