Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F123521
TaskGroup.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
TaskGroup.cpp
View Options
#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
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Jan 16, 10:15 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71792
Default Alt Text
TaskGroup.cpp (1 KB)
Attached To
Mode
rEE Echo 3
Attached
Detach File
Event Timeline
Log In to Comment