Improved submodules

PluginManager is now a submodule


Former-commit-id: 2e147317ab07447e134d15790386bd6d3494b9d1
This commit is contained in:
Lynix
2014-04-20 23:50:55 +02:00
parent 9b74459ea8
commit 361e2a31ee
5 changed files with 64 additions and 8 deletions

View File

@@ -35,7 +35,10 @@ bool NzTaskScheduler::Initialize()
void NzTaskScheduler::Run()
{
if (!Initialize())
NazaraError("Failed to initialize TaskScheduler");
{
NazaraError("Failed to initialize Task Scheduler");
return;
}
if (!s_pendingWorks.empty())
{
@@ -66,7 +69,10 @@ void NzTaskScheduler::Uninitialize()
void NzTaskScheduler::WaitForTasks()
{
if (!Initialize())
NazaraError("Failed to initialize TaskScheduler");
{
NazaraError("Failed to initialize Task Scheduler");
return;
}
NzTaskSchedulerImpl::WaitForTasks();
}
@@ -74,7 +80,10 @@ void NzTaskScheduler::WaitForTasks()
void NzTaskScheduler::AddTaskFunctor(NzFunctor* taskFunctor)
{
if (!Initialize())
NazaraError("Failed to initialize TaskScheduler");
{
NazaraError("Failed to initialize Task Scheduler");
return;
}
s_pendingWorks.push_back(taskFunctor);
}