25 #include <seastar/util/backtrace.hh>
27 #ifndef SEASTAR_MODULE
39 #ifdef SEASTAR_TASK_BACKTRACE
50 return std::exchange(_sg, new_sg);
54 virtual void run_and_dispose() noexcept = 0;
59 #ifdef SEASTAR_TASK_BACKTRACE
60 void make_backtrace() noexcept;
62 void make_backtrace() noexcept {}
67 shared_backtrace task::get_backtrace()
const {
68 #ifdef SEASTAR_TASK_BACKTRACE
75 SEASTAR_MODULE_EXPORT_BEGIN
77 void schedule(task* t) noexcept;
78 void schedule_checked(task* t) noexcept;
79 void schedule_urgent(task* t) noexcept;
81 SEASTAR_MODULE_EXPORT_END
Definition: shared_ptr.hh:270
Identifies function calls that are accounted as a group.
Definition: scheduling.hh:286
virtual task * waiting_task() noexcept=0
Returns the next task which is waiting for this task to complete execution, or nullptr.
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
scheduling_group current_scheduling_group() noexcept
Returns the current scheduling group.
Definition: scheduling.hh:400