mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 07:20:05 +00:00
Use boost::asio for asynchronous processing
This commit is contained in:
parent
09064c0be0
commit
bb7793d309
4 changed files with 57 additions and 3 deletions
15
wxdata/source/scwx/util/threads.cpp
Normal file
15
wxdata/source/scwx/util/threads.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <scwx/util/threads.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace util
|
||||
{
|
||||
|
||||
boost::asio::io_context& io_context()
|
||||
{
|
||||
static boost::asio::io_context ioContext {};
|
||||
return ioContext;
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue