From d0a2c85cae667643d81c262a2de69ce6bea73840 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 30 Oct 2024 18:26:02 +0300 Subject: [PATCH] reactor: Mark drain() private It's only called by reactor itself on stop, no need in keeping it public Signed-off-by: Pavel Emelyanov --- include/seastar/core/reactor.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/seastar/core/reactor.hh b/include/seastar/core/reactor.hh index 63e3fc0a39..9296ced12b 100644 --- a/include/seastar/core/reactor.hh +++ b/include/seastar/core/reactor.hh @@ -424,6 +424,9 @@ private: void configure(const reactor_options& opts); int do_run(); + // Waits for all background tasks on all shards + static future<> drain(); + public: explicit reactor(std::shared_ptr smp, alien::instance& alien, unsigned id, reactor_backend_selector rbs, reactor_config cfg); reactor(const reactor&) = delete; @@ -534,9 +537,6 @@ public: run_in_background(futurize_invoke(std::forward(func))); } - // Waits for all background tasks on all shards - static future<> drain(); - /// Set a handler that will be called when there is no task to execute on cpu. /// Handler should do a low priority work. ///