提交 5ce53dac 编写于 作者: C changsh726 提交者: liuxu

Cyber: bugfix #11748

上级 320724f2
......@@ -50,10 +50,11 @@ void TimingWheel::Tick() {
if (task) {
ADEBUG << "index: " << current_work_wheel_index_
<< " timer id: " << task->timer_id_;
auto callback = task->callback;
cyber::Async([this, &callback] {
auto* callback =
reinterpret_cast<std::function<void()>*>(&(task->callback));
cyber::Async([this, callback] {
if (this->running_) {
callback();
(*callback)();
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册