JustEnoughMod
Loading...
Searching...
No Matches
TaskManager.hpp
1#ifndef SCHED_TASKMANAGER_HPP
2#define SCHED_TASKMANAGER_HPP
3
4#include <core/AppModule.hpp>
5#include <sched/Task.hpp>
6#include <sched/TaskPool.hpp>
7
8#include <utility>
9
10namespace JEM {
11 class TaskManager : public AppModule {
12 public:
13 explicit TaskManager(std::shared_ptr<Application> app) : AppModule(app) {
14 // for (int i = 0; i < 10000000; ++i) {
15 // m_pool.push([i]() { getSystemLogger()->debug("Test Task {}", i + 1); });
16 // }
17 }
18
19 void push(const Task &task) {}
20
21 private:
22 TaskPool m_pool;
23 JEM::queue<Task> m_taskQueue;
24 };
25} // namespace JEM
26
27#endif
Definition AppModule.hpp:9
Definition TaskManager.hpp:11
Definition TaskPool.hpp:10
Definition Task.hpp:8
Definition Queue.hpp:11