Switch from Nz prefix to namespace Nz

What a huge commit


Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
Lynix
2015-09-25 19:20:05 +02:00
parent c214251ecf
commit df8da275c4
609 changed files with 68265 additions and 66534 deletions

View File

@@ -10,25 +10,28 @@
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/Functor.hpp>
class NAZARA_CORE_API NzTaskScheduler
namespace Nz
{
public:
NzTaskScheduler() = delete;
~NzTaskScheduler() = delete;
class NAZARA_CORE_API TaskScheduler
{
public:
TaskScheduler() = delete;
~TaskScheduler() = delete;
template<typename F> static void AddTask(F function);
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 void Run();
static void SetWorkerCount(unsigned int workerCount);
static void Uninitialize();
static void WaitForTasks();
template<typename F> static void AddTask(F function);
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 void Run();
static void SetWorkerCount(unsigned int workerCount);
static void Uninitialize();
static void WaitForTasks();
private:
static void AddTaskFunctor(NzFunctor* taskFunctor);
};
private:
static void AddTaskFunctor(Functor* taskFunctor);
};
}
#include <Nazara/Core/TaskScheduler.inl>