提交 2dded9b7 编写于 作者: Z zhao liwei 提交者: neverchanje

fix: fix the bug that threads don't stop when pegasus_io_service is released (#455)

上级 51338a75
Subproject commit 9679e40fcd86edff5018bad67e8ba2c74412fd44
Subproject commit d1cb30c6b0a3b9f08cf2501e8f193c7be4e87965
......@@ -30,6 +30,14 @@ public:
}
}
~pegasus_io_service()
{
ios.stop();
for (auto worker : _workers) {
worker->join();
}
}
boost::asio::io_service ios;
private:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册