![]() |
RMVL
2.5.0-dev
Robotic Manipulation and Vision Library
|
异步定时器代理 更多...
#include <rmvl/lpss/node.hpp>
Public 类型 | |
| using | ptr = std::shared_ptr<Timer> |
Public 成员函数 | |
| void | cancel () noexcept |
| 取消定时器 | |
| bool | cancelled () const noexcept |
| 判断定时器是否已取消 | |
| Public 成员函数 继承自 rm::async::Timer | |
| Timer (IOContext &io_context) | |
| ~Timer () | |
| template<typename Rep, typename Period> | |
| TimerAwaiter | sleep_for (const std::chrono::duration< Rep, Period > &duration) |
| 创建一个持续指定时间的定时等待器 | |
| template<typename Clock, typename Duration> | |
| TimerAwaiter | sleep_until (const std::chrono::time_point< Clock, Duration > &time_point) |
| 创建一个在指定时间点触发的定时等待器 | |
异步定时器代理
| using rm::lpss::async::Timer::ptr = std::shared_ptr<Timer> |
|
inlinenoexcept |
取消定时器
返回后不会再执行新的回调;若回调正在其他线程中执行,则等待该回调结束。
|
inlinenoexcept |
判断定时器是否已取消