feat support default Timer::Ptr = nullptr

This commit is contained in:
tqcq 2024-05-01 08:09:06 +00:00
parent 00e6e92041
commit 0990783878

View File

@ -17,11 +17,12 @@ typedef uint32_t TimerGeneration;
class Timer;
struct TimerThreadDeleter {
TimerThreadDeleter() = default;
TimerThreadDeleter(TaskQueueBase *owner);
inline void operator()(Timer *timer);
private:
TaskQueueBase *owner_;
TaskQueueBase *owner_ = nullptr;
};
class Timer {