Sese Framework
x.y.z
A cross-platform framework
|
定时任务 更多...
#include <Timer.h>
Public 类型 | |
using | Ptr = std::shared_ptr<TimerTask> |
Public 成员函数 | |
void | cancel () noexcept |
取消当前定时任务 | |
Private 成员函数 | |
TimerTask ()=default | |
Private 属性 | |
int64_t | sleepTimestamp = 0 |
int64_t | targetTimestamp = 0 |
bool | isRepeat = false |
std::function< void()> | callback |
std::function< void()> | cancelCallback |
友元 | |
class | Timer |
定时任务
using sese::TimerTask::Ptr = std::shared_ptr<TimerTask> |
|
privatedefault |
|
noexcept |
取消当前定时任务
引用了 cancelCallback.
|
friend |
|
private |
|
private |
被这些函数引用 cancel().
|
private |
|
private |
|
private |