Stabilized TaskScheduler (Still buggy)
Former-commit-id: a604c6616065342b21d2c11c27974ec11935a852
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/Functor.hpp>
|
||||
#include <Nazara/Core/Thread.hpp>
|
||||
|
||||
class NAZARA_API NzTaskScheduler
|
||||
{
|
||||
@@ -20,7 +21,7 @@ class NAZARA_API NzTaskScheduler
|
||||
template<typename F, typename... Args> static void AddTask(F function, Args... args);
|
||||
template<typename C> static void AddTask(void (C::*function)(), C* object);
|
||||
static unsigned int GetWorkerCount();
|
||||
static bool Initialize();
|
||||
static bool Initialize(unsigned int workerCount = NzThread::HardwareConcurrency());
|
||||
static void Uninitialize();
|
||||
static void WaitForTasks();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user