This commit is contained in:
ziyue
2020-12-27 18:41:53 +08:00
10 changed files with 55 additions and 42 deletions

View File

@@ -77,7 +77,7 @@ public:
_task->cancel();
}
void start(int ms ,EventPoller &poller){
void start(uint64_t ms ,EventPoller &poller){
weak_ptr<TimerForC> weak_self = shared_from_this();
_task = poller.doDelayTask(ms, [weak_self]() {
auto strong_self = weak_self.lock();