]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/async: async_cond Executor defaults to any_io_executor
authorCasey Bodley <cbodley@redhat.com>
Mon, 16 Mar 2026 20:14:24 +0000 (16:14 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 17 Mar 2026 22:52:09 +0000 (18:52 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/async/async_cond.h

index d69f51ba5d631daaf2108f3c2c6031266cd4831b..0ad87f75cd0904265b0ac59faf6915489d956755 100644 (file)
@@ -25,6 +25,7 @@
 #include <boost/asio/execution/context.hpp>
 
 #include <boost/asio/any_completion_handler.hpp>
+#include <boost/asio/any_io_executor.hpp>
 #include <boost/asio/append.hpp>
 #include <boost/asio/async_result.hpp>
 #include <boost/asio/consign.hpp>
@@ -47,7 +48,8 @@ namespace ceph::async {
 ///
 /// \tparam Executor An asio::executor
 /// \tparam BasicLockable The mutex
-template<typename Executor, typename BasicLockable = std::mutex>
+template<typename Executor = boost::asio::any_io_executor,
+         typename BasicLockable = std::mutex>
 class async_cond : public service_list_base_hook {
   friend service<async_cond>;