Move to boost::asio::post
This allows entity_manager to compile with BOOST_ASIO_NO_DEPRECATED set.
It was functionally changed a few years ago, and is identical to the
other behavior.
Change-Id: Ib8125fcf9bdddf0bafd46118c4e764f7f83a0c2d
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/healthMonitor.cpp b/healthMonitor.cpp
index 2b3d5fe..f8b2c54 100644
--- a/healthMonitor.cpp
+++ b/healthMonitor.cpp
@@ -821,8 +821,9 @@
});
// Start the timer
- io.post(
- [conn]() { sensorRecreateTimerCallback(sensorRecreateTimer, *conn); });
+ boost::asio::post(io, [conn]() {
+ sensorRecreateTimerCallback(sensorRecreateTimer, *conn);
+ });
io.run();
return 0;