feat add TimerPtr
This commit is contained in:
parent
e730d57cd0
commit
afd07e8012
@ -26,6 +26,8 @@ private:
|
|||||||
|
|
||||||
class Timer {
|
class Timer {
|
||||||
public:
|
public:
|
||||||
|
using TimerPtr = std::unique_ptr<Timer, TimerThreadDeleter>;
|
||||||
|
|
||||||
using OnExpired = std::function<sled::optional<DurationMs>()>;
|
using OnExpired = std::function<sled::optional<DurationMs>()>;
|
||||||
Timer(const Timer &) = delete;
|
Timer(const Timer &) = delete;
|
||||||
Timer &operator=(const Timer &) = delete;
|
Timer &operator=(const Timer &) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user