From da27b4cd208d726203bbbd393bed5739546fa213 Mon Sep 17 00:00:00 2001 From: Daniil Mironenko Date: Mon, 16 Sep 2024 14:22:53 +0300 Subject: [PATCH] create schduler interface --- source/fiber/sched/task/scheduler.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 source/fiber/sched/task/scheduler.hpp diff --git a/source/fiber/sched/task/scheduler.hpp b/source/fiber/sched/task/scheduler.hpp new file mode 100644 index 0000000..d3bc19f --- /dev/null +++ b/source/fiber/sched/task/scheduler.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include "task.hpp" + +namespace fiber::sched::task { + +struct IScheduler { + virtual ~IScheduler() = default; + + virtual void Submit(TaskBase*) = 0; +}; + +} // namespace fiber::sched::task