0.44.0
|
#include <iTaskManager.h>
Inherits igor::iModule< iTaskManager >.
Public Member Functions | |
iTaskID | addTask (iTask *task) |
iTask * | getTask (iTaskID taskID) |
void | abortTask (iTaskID taskID) |
uint32 | getRegularThreadCount () const |
uint32 | getRenderContextThreadCount () const |
uint32 | getQueuedRegularTaskCount () const |
uint32 | getRunningRegularTaskCount () const |
uint32 | getQueuedRenderContextTaskCount () const |
uint32 | getRunningRenderContextTaskCount () const |
uint64 | getTaskDoneCount () const |
void | registerTaskFinishedDelegate (iTaskFinishedDelegate taskFinishedDelegate) |
void | unregisterTaskFinishedDelegate (iTaskFinishedDelegate taskFinishedDelegate) |
Static Public Member Functions | |
static bool | isRunning () |
Static Public Member Functions inherited from igor::iModule< iTaskManager > | |
static IGOR_INLINE iTaskManager & | getInstance () |
static IGOR_INLINE bool | isInstantiated () |
static void | create () |
static void | destroy () |
Friends | |
class | iModule< iTaskManager > |
class | iWindow |
Additional Inherited Members | |
Protected Member Functions inherited from igor::iModule< iTaskManager > | |
iModule ()=default | |
virtual | ~iModule ()=default |
manages tasks to be done in parallel
void igor::iTaskManager::abortTask | ( | iTaskID | taskID | ) |
aborts a task by id
taskID | the task id to abort |
adds a task to be processed
!!! ATTENTION task get's consumed and later deleted by task manager
task | the task to be added |
uint32 igor::iTaskManager::getQueuedRegularTaskCount | ( | ) | const |
uint32 igor::iTaskManager::getQueuedRenderContextTaskCount | ( | ) | const |
uint32 igor::iTaskManager::getRegularThreadCount | ( | ) | const |
uint32 igor::iTaskManager::getRenderContextThreadCount | ( | ) | const |
uint32 igor::iTaskManager::getRunningRegularTaskCount | ( | ) | const |
uint32 igor::iTaskManager::getRunningRenderContextTaskCount | ( | ) | const |
taskID | the task ID to search for |
uint64 igor::iTaskManager::getTaskDoneCount | ( | ) | const |
|
static |
void igor::iTaskManager::registerTaskFinishedDelegate | ( | iTaskFinishedDelegate | taskFinishedDelegate | ) |
registers delegate to task finished event
taskFinishedDelegate | the delegate to register |
void igor::iTaskManager::unregisterTaskFinishedDelegate | ( | iTaskFinishedDelegate | taskFinishedDelegate | ) |
unregisters delegate from task finished event
taskFinishedDelegate | the delegate to unregister |
|
friend |
|
friend |