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.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/framework/interface/Scheduler.h b/include/framework/interface/Scheduler.h
index 451ddd2..d76a6c8 100644
--- a/include/framework/interface/Scheduler.h
+++ b/include/framework/interface/Scheduler.h
@@ -1,7 +1,7 @@
/*
* include/framework/interface/Scheduler.h
*
- * Copyright (C) 2023 Douglas B. Rumbaugh <drumbaugh@psu.edu>
+ * Copyright (C) 2023-2024 Douglas B. Rumbaugh <drumbaugh@psu.edu>
*
* Distributed under the Modified BSD License.
*
@@ -10,10 +10,11 @@
#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()};
+template <typename SchedType>
+concept SchedulerInterface = requires(SchedType s, size_t i, void *vp,
+ de::Job j) {
+ {SchedType(i, i)};
+ {s.schedule_job(j, i, vp, i)} -> std::convertible_to<void>;
+ {s.shutdown()};
+ {s.print_statistics()};
};