treewide: use coroutine::maybe_yield() instead of co_await make_ready_future()

The dedicated API shows the intent, and may be a tiny bit faster.

Closes #9382
This commit is contained in:
Avi Kivity
2021-09-23 12:32:36 +03:00
committed by Piotr Sarna
parent 6702711d9c
commit 369afe3124
11 changed files with 29 additions and 18 deletions

View File

@@ -23,6 +23,7 @@
#include <seastar/testing/test_case.hh>
#include <seastar/core/timed_out_error.hh>
#include <seastar/core/coroutine.hh>
#include <seastar/coroutine/maybe_yield.hh>
#include <seastar/core/gate.hh>
#include <seastar/core/queue.hh>
#include <seastar/core/future-util.hh>
@@ -146,7 +147,7 @@ public:
// In any case we simply drop the output.
}
co_await make_ready_future<>(); // maybe yield
co_await coroutine::maybe_yield();
}
});
}