Adding in boost::asio support
main starts a thread that keep a global io_service object running and makes sure it is stopped when everything else is stopped.
This commit is contained in:
parent
a6755c20f2
commit
4beea05ba6
7 changed files with 50 additions and 9 deletions
7
pglab/GlobalIoService.cpp
Normal file
7
pglab/GlobalIoService.cpp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include "GlobalIoService.h"
|
||||
|
||||
std::shared_ptr<boost::asio::io_service> getGlobalAsioIoService()
|
||||
{
|
||||
static auto ios = std::make_shared<boost::asio::io_service>();
|
||||
return ios;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue