JustEnoughMod
Loading...
Searching...
No Matches
Task.hpp
1
#ifndef SCHED_TASK_HPP
2
#define SCHED_TASK_HPP
3
4
#include <sched/TaskPool.hpp>
5
#include <utility>
6
7
namespace
JEM {
8
class
Task
{
9
public
:
10
Task
(std::string name, std::function<
void
()>
func
) : m_name(std::move(name)), m_func(std::move(
func
)){};
11
12
private
:
13
std::string m_name;
14
std::function<void()> m_func;
15
};
16
}
// namespace JEM
17
18
#endif
JEM::Task
Definition
Task.hpp:8
func
void func()
Definition
group.cpp:13
include
sched
Task.hpp
Generated by
1.10.0