Rewrote Task Scheduler
Better and faster implementation Former-commit-id: d765415ca0576cd843480292e30c2d7bafa7f66a
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/Functor.hpp>
|
||||
#include <Nazara/Core/Thread.hpp>
|
||||
|
||||
class NAZARA_API NzTaskScheduler
|
||||
{
|
||||
@@ -22,6 +21,7 @@ class NAZARA_API NzTaskScheduler
|
||||
template<typename C> static void AddTask(void (C::*function)(), C* object);
|
||||
static unsigned int GetWorkerCount();
|
||||
static bool Initialize();
|
||||
static void Run();
|
||||
static void SetWorkerCount(unsigned int workerCount);
|
||||
static void Uninitialize();
|
||||
static void WaitForTasks();
|
||||
|
||||
Reference in New Issue
Block a user