blob: d76a6c80d04a13c708b3e2f4115500940be538e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* include/framework/interface/Scheduler.h
*
* Copyright (C) 2023-2024 Douglas B. Rumbaugh <drumbaugh@psu.edu>
*
* Distributed under the Modified BSD License.
*
*/
#pragma once
#include "framework/scheduling/Task.h"
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()};
};
|