pgLab/pglab/GlobalIoService.cpp
Eelke Klein 4beea05ba6 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.
2017-08-24 19:45:00 +02:00

7 lines
183 B
C++

#include "GlobalIoService.h"
std::shared_ptr<boost::asio::io_service> getGlobalAsioIoService()
{
static auto ios = std::make_shared<boost::asio::io_service>();
return ios;
}