Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix io_service_fixture_with_threads: create given threads count #75

Merged
merged 6 commits into from
Apr 5, 2018
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(); });
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

for (std::uint32_t i = 0; i < threadCount; ++i)
{
m_ioThreads.emplace_back([this] { m_ioService.process_events(); });
}
}
catch (...)
{
Expand Down