Added SimpleWeb::post to asio_compability.hpp
This commit is contained in:
parent
d156326598
commit
ac6bea58ff
2 changed files with 10 additions and 2 deletions
|
|
@ -442,7 +442,7 @@ namespace SimpleWeb {
|
|||
restart(*io_service);
|
||||
|
||||
if(callback)
|
||||
io_service->post(std::move(callback));
|
||||
post(*io_service, std::move(callback));
|
||||
|
||||
// If thread_pool_size>1, start m_io_service.run() in (thread_pool_size-1) threads for thread-pooling
|
||||
threads.clear();
|
||||
|
|
@ -461,7 +461,7 @@ namespace SimpleWeb {
|
|||
t.join();
|
||||
}
|
||||
else if(callback)
|
||||
io_service->post(std::move(callback));
|
||||
post(*io_service, std::move(callback));
|
||||
}
|
||||
|
||||
/// Start the server by calling bind() and accept_and_run().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue