diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2019-01-02 14:15:50 -0800 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2019-01-12 01:37:38 +0000 |
| commit | c7d104d2d3f384644b767a4d7db5a2e997eccbc3 (patch) | |
| tree | 771b2a125b130555e2960229b6ca053227dc5e68 /example | |
| parent | 596a223c2f0b9f6577f79f8036774aae88180268 (diff) | |
| download | sdbusplus-c7d104d2d3f384644b767a4d7db5a2e997eccbc3.tar.gz sdbusplus-c7d104d2d3f384644b767a4d7db5a2e997eccbc3.zip | |
Move asio interfaces away from deprecated names
The intent of this commit is to allow building asio based event loops in
applications with BOOST_ASIO_NO_DEPRECATED flag set. This change is
largely a sed replace of io_service with io_context.
This will allow us to move to the networking TS at such time that it is
mature. Details on depreated interfaces are available here for
reference:
https://www.boost.org/doc/libs/1_69_0/doc/html/boost_asio/net_ts.html
Change-Id: Ie3cc699effcf855a649dee5bfce2f6616109429b
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'example')
| -rw-r--r-- | example/asio-example.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/asio-example.cpp b/example/asio-example.cpp index 29b605f..61916a5 100644 --- a/example/asio-example.cpp +++ b/example/asio-example.cpp @@ -174,7 +174,7 @@ void do_start_async_to_yield(std::shared_ptr<sdbusplus::asio::connection> conn, int server() { // setup connection to dbus - boost::asio::io_service io; + boost::asio::io_context io; auto conn = std::make_shared<sdbusplus::asio::connection>(io); // test object server @@ -254,7 +254,7 @@ int client() using message = sdbusplus::message::message; // setup connection to dbus - boost::asio::io_service io; + boost::asio::io_context io; auto conn = std::make_shared<sdbusplus::asio::connection>(io); int ready = 0; |

