igor::iTaskFlushResources Class Reference

#include <iTaskFlushResources.h>

Inherits igor::iTask.

Public Member Functions

 iTaskFlushResources (iWindowPtr window)
 
virtual ~iTaskFlushResources ()=default
 
void abort () override
 
- Public Member Functions inherited from igor::iTask
 iTask (iWindowPtr window=nullptr, uint32 priority=iTask::TASK_PRIORITY_DEFAULT, bool isRepeating=false, iTaskContext taskContext=iTaskContext::Default)
 
virtual ~iTask ()=default
 
virtual void abort ()
 
bool isRunning ()
 
iTaskContext getContext ()
 
uint32 getPriority ()
 
void setPriority (uint32 priority)
 
bool isRepeating ()
 
iTaskID getID ()
 
uint64 getWorldID ()
 
void setWorldID (uint64 worldID)
 
iWindowPtr getWindow ()
 

Protected Member Functions

void run () override
 
- Protected Member Functions inherited from igor::iTask
void setRepeating (bool repeat)
 
virtual void run ()=0
 

Additional Inherited Members

- Static Public Attributes inherited from igor::iTask
static const iTaskID INVALID_TASK_ID = 0
 
static const uint32 TASK_PRIORITY_MAX = 0
 
static const uint32 TASK_PRIORITY_HIGH = 5
 
static const uint32 TASK_PRIORITY_DEFAULT = 10
 
static const uint32 TASK_PRIORITY_LOW = 20
 

Detailed Description

this task triggers the resource manager flush function repeatedly

when ever there was a resource requested this task get's it actually loaded from disk

will be added to the task manager after window was opened

Constructor & Destructor Documentation

◆ iTaskFlushResources()

igor::iTaskFlushResources::iTaskFlushResources ( iWindowPtr  window)

initializes member variables

Parameters
windowwindow connected to render context

◆ ~iTaskFlushResources()

virtual igor::iTaskFlushResources::~iTaskFlushResources ( )
virtualdefault

does nothing

Member Function Documentation

◆ abort()

void igor::iTaskFlushResources::abort ( )
overridevirtual

aborts the task

Reimplemented from igor::iTask.

◆ run()

void igor::iTaskFlushResources::run ( )
overrideprotectedvirtual

runs the task

Implements igor::iTask.


The documentation for this class was generated from the following files: