Page MenuHomePhorge

TaskGroup.cpp
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

TaskGroup.cpp

#include <echo/Kernel/TaskGroup.h>
#include <iostream>
#include <algorithm>
namespace Echo
{
TaskGroup::TaskGroup()
{
}
TaskGroup::TaskGroup(const std::string& taskGroupName, u32 priority) : Task(taskGroupName,priority)
{
SetTaskManagerName(taskGroupName);
}
TaskGroup::~TaskGroup()
{
}
bool TaskGroup::OnStart()
{
if(!TaskManager::StartTasks())
{
TaskManager::StopTasks();
return false;
}
return true;
}
void TaskGroup::OnStop()
{
StopTasks();
}
void TaskGroup::OnPause(bool applicationPause)
{
PauseAllActiveTasks(applicationPause);
}
void TaskGroup::OnResume(bool applicationResume)
{
ResumeAllPreviouslyActiveTasks(applicationResume);
}
void TaskGroup::Update(Seconds lastFrameTime)
{
TaskManager::UpdateTasks(lastFrameTime);
}
void TaskGroup::SetTaskName(const std::string& name)
{
Task::SetTaskName(name);
TaskManager::SetTaskManagerName(name);
}
void TaskGroup::SetTaskManagerName(const std::string& name)
{
Task::SetTaskName(name);
TaskManager::SetTaskManagerName(name);
}
}

File Metadata

Mime Type
text/x-c++
Expires
Thu, Jan 16, 10:15 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71792
Default Alt Text
TaskGroup.cpp (1 KB)

Event Timeline