summaryrefslogtreecommitdiffstats
path: root/include/framework/interface/Scheduler.h
blob: 0724bcef11b060c547d745de9a3ef824a525073e (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()};
};