summaryrefslogtreecommitdiffstats
path: root/include/framework/interface/Scheduler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/interface/Scheduler.h')
-rw-r--r--include/framework/interface/Scheduler.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/framework/interface/Scheduler.h b/include/framework/interface/Scheduler.h
new file mode 100644
index 0000000..451ddd2
--- /dev/null
+++ b/include/framework/interface/Scheduler.h
@@ -0,0 +1,19 @@
+/*
+ * include/framework/interface/Scheduler.h
+ *
+ * Copyright (C) 2023 Douglas B. Rumbaugh <drumbaugh@psu.edu>
+ *
+ * Distributed under the Modified BSD License.
+ *
+ */
+#pragma once
+
+#include "framework/scheduling/Task.h"
+
+template <typename S>
+concept SchedulerInterface = requires(S s, size_t i, void *vp, de::Job j) {
+ {S(i, i)};
+ {s.schedule_job(j, i, vp, i)} -> std::convertible_to<void>;
+ {s.shutdown()};
+ {s.print_statistics()};
+};