diff options
author | Vernon Mauery <vernon.mauery@linux.intel.com> | 2019-03-13 09:16:04 -0700 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2019-06-21 22:29:41 +0000 |
commit | 23d06441e9ef92b0cfa421dbf256661d31ed5153 (patch) | |
tree | 8006eca8cafd4e7bcb7accced384d5c98eb69b93 /include/ipmid | |
parent | 1a4beed99d47d92e71dca2e9c198c69a602dc324 (diff) | |
download | phosphor-host-ipmid-23d06441e9ef92b0cfa421dbf256661d31ed5153.tar.gz phosphor-host-ipmid-23d06441e9ef92b0cfa421dbf256661d31ed5153.zip |
Use boost::asio::post() instead of io->post()
According to the documentation io->post is deprecated, saying
that boost::asio::post() should be used instead.
Tested: ipmid runs the same as it did before.
Change-Id: I552c7cb5cb8ad8f9f6e2bcffa61ce5135e2faad2
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'include/ipmid')
-rw-r--r-- | include/ipmid/api.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ipmid/api.hpp b/include/ipmid/api.hpp index f4cbf13..6e33470 100644 --- a/include/ipmid/api.hpp +++ b/include/ipmid/api.hpp @@ -47,7 +47,7 @@ std::shared_ptr<sdbusplus::asio::connection> getSdBus(); template <typename WorkFn> static inline void post_work(WorkFn work) { - getIoContext()->post(std::forward<WorkFn>(work)); + boost::asio::post(*getIoContext(), std::forward<WorkFn>(work)); } enum class SignalResponse : int |