提交 d9a2a186 编写于 作者: Y youngwolf

Fix the stand alone usage of the timer.

上级 31d0616b
......@@ -195,8 +195,8 @@ protected:
}
void reset_io_context_refs() {if (0 == io_context_refs) add_io_context_refs(1);}
virtual void attach_io_context(asio::io_context& io_context_, unsigned refs) = 0;
virtual void detach_io_context(asio::io_context& io_context_, unsigned refs) = 0;
virtual void attach_io_context(asio::io_context& io_context_, unsigned refs) {}
virtual void detach_io_context(asio::io_context& io_context_, unsigned refs) {}
private:
typedef std::list<timer_info> container_type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册