24#include <seastar/core/coroutine.hh>
27namespace seastar::coroutine {
58 task* _task =
nullptr;
62 , _switch_to_sg(std::move(new_sg))
68 bool await_ready()
const noexcept {
73 void await_suspend(std::coroutine_handle<T> hndl)
noexcept {
74 auto& t = hndl.promise();
75 t.set_scheduling_group(_switch_to_sg);
84 virtual void run_and_dispose()
noexcept override { }
Identifies function calls that are accounted as a group.
Definition: scheduling.hh:285
scheduling_group current_scheduling_group() noexcept
Returns the current scheduling group.
Definition: scheduling.hh:397
Definition: switch_to.hh:55
virtual task * waiting_task() noexcept override
Returns the next task which is waiting for this task to complete execution, or nullptr.
Definition: switch_to.hh:86