Skip to content

Commit

Permalink
Fix io_service_fixture_with_threads: create given threads count (lewi…
Browse files Browse the repository at this point in the history
  • Loading branch information
grishavanika authored and blapid committed Jul 24, 2018
1 parent 7efdc79 commit 62e8697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/io_service_fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ struct io_service_fixture
m_ioThreads.reserve(threadCount);
try
{
m_ioThreads.emplace_back([this] { m_ioService.process_events(); });
for (std::uint32_t i = 0; i < threadCount; ++i)
{
m_ioThreads.emplace_back([this] { m_ioService.process_events(); });
}
}
catch (...)
{
Expand Down

0 comments on commit 62e8697

Please sign in to comment.