Skip to content

Commit

Permalink
add thread hint parameter to io_context constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvid Norberg authored and arvidn committed Nov 13, 2019
1 parent e4fb5e1 commit ba65f2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/simulator/simulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ namespace sim
io_service(sim::simulation& sim);
io_service(sim::simulation& sim, ip::address const& ip);
io_service(sim::simulation& sim, std::vector<ip::address> const& ips);
io_service();
io_service(int threads_hint = 0);
~io_service();

#if BOOST_VERSION >= 106600
Expand Down
2 changes: 1 addition & 1 deletion src/io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace sim { namespace asio {
m_sim.remove_io_service(this);
}

io_service::io_service()
io_service::io_service(int)
: m_sim(*reinterpret_cast<sim::simulation*>(0))
{
assert(false);
Expand Down
1 change: 1 addition & 0 deletions src/simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace sim
simulation::simulation(configuration& config)
: m_config(config)
, m_internal_ios(new asio::io_service(*this))
, m_service(1)
{
m_config.build(*this);
}
Expand Down

0 comments on commit ba65f2f

Please sign in to comment.