feat add TimerPtr
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m57s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m10s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m35s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m52s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 3m2s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 5m46s
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m57s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m10s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m35s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m52s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 3m2s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 5m46s
This commit is contained in:
parent
afd07e8012
commit
00e6e92041
@ -26,7 +26,7 @@ private:
|
|||||||
|
|
||||||
class Timer {
|
class Timer {
|
||||||
public:
|
public:
|
||||||
using TimerPtr = std::unique_ptr<Timer, TimerThreadDeleter>;
|
using Ptr= 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user