summaryrefslogtreecommitdiffstats
path: root/include/framework/interface/Scheduler.h
blob: 451ddd2e710d0d0a6c73cfd0e7f8313384bdd17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()};
};