mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-30 06:39:35 +02:00
switch to boost::asio
This commit is contained in:
parent
08d0ce58f2
commit
ec3f8d8ad5
16 changed files with 70 additions and 56 deletions
|
@ -201,11 +201,11 @@ int main(int argc, char* argv[])
|
|||
if (settings.bufferMs < 400)
|
||||
settings.bufferMs = 400;
|
||||
|
||||
asio::io_context io_context;
|
||||
boost::asio::io_context io_context;
|
||||
std::unique_ptr<StreamServer> streamServer(new StreamServer(&io_context, settings));
|
||||
streamServer->start();
|
||||
|
||||
auto func = [](asio::io_context* ioservice) -> void { ioservice->run(); };
|
||||
auto func = [](boost::asio::io_context* ioservice) -> void { ioservice->run(); };
|
||||
std::thread t(func, &io_context);
|
||||
|
||||
while (!g_terminated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue