summaryrefslogtreecommitdiffstats
path: root/include/framework/interface/Scheduler.h
blob: 94afe6c683476c7c975e3646a74c2f341eff124b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * 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)} -> std::convertible_to<void>;
    {s.shutdown()};
};