Skip to content

Commit a466e5b

Browse files
authored
Use boost::asio::post (#241)
1 parent 182b7e4 commit a466e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eventing/asio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ void us_internal_async_wakeup(struct us_internal_async *a) {
455455
cb->m.unlock();
456456

457457
// should increase and decrease polls (again, loop mutex)
458-
io->post([weakBoostBlock = std::weak_ptr<boost_async>(cb->isValid)]() {
458+
boost::asio::post(*io, [weakBoostBlock = std::weak_ptr<boost_async>(cb->isValid)]() {
459459

460460
// was the async deleted before we came here?
461461
struct boost_async *cb;

0 commit comments

Comments
 (0)