7 #ifndef NAZARA_TASKSCHEDULER_HPP 8 #define NAZARA_TASKSCHEDULER_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Core/Functor.hpp> 21 template<
typename F>
static void AddTask(F
function);
22 template<
typename F,
typename... Args>
static void AddTask(F
function, Args&&... args);
23 template<
typename C>
static void AddTask(
void (C::*
function)(), C*
object);
24 static unsigned int GetWorkerCount();
25 static bool Initialize();
27 static void SetWorkerCount(
unsigned int workerCount);
28 static void Uninitialize();
29 static void WaitForTasks();
32 static void AddTaskFunctor(Functor* taskFunctor);
36 #include <Nazara/Core/TaskScheduler.inl> 38 #endif // NAZARA_TASKSCHEDULER_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents a thread pool.
Definition: TaskScheduler.hpp:15