From: Adam Emerson Date: Thu, 12 Dec 2024 21:11:32 +0000 (-0500) Subject: test/neorados: Use `asio::post` free function X-Git-Tag: testing/wip-vshankar-testing-20250213.045228~6^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ac1241e75b726079e7138c74fa7227a73e1bbf4c;p=ceph-ci.git test/neorados: Use `asio::post` free function Signed-off-by: Adam Emerson --- diff --git a/src/test/neorados/completions.cc b/src/test/neorados/completions.cc index b6286130bbe..a4684e4dc51 100644 --- a/src/test/neorados/completions.cc +++ b/src/test/neorados/completions.cc @@ -1,4 +1,5 @@ #include +#include constexpr int max_completions = 10'000'000; int completed = 0; @@ -7,11 +8,11 @@ boost::asio::io_context c; void nested_cb() { if (++completed < max_completions) - c.post(&nested_cb); + boost::asio::post(c, &nested_cb); } int main(void) { - c.post(&nested_cb); + boost::asio::post(c, &nested_cb); c.run(); assert(completed == max_completions); return 0;