Plasma Engine  2.0
Loading...
Searching...
No Matches
plResourceManagerWorkerUpdateContent Class Referencefinal

[internal] Worker task for uploading resource data. Depending on the resource type, this may get scheduled to run on the main thread or on any thread. More...

#include <WorkerTasks.h>

Inheritance diagram for plResourceManagerWorkerUpdateContent:

Public Attributes

plResourceLoadData m_LoaderData
 
plResourcem_pResourceToLoad = nullptr
 
plResourceTypeLoaderm_pLoader = nullptr
 
plUniquePtr< plResourceTypeLoaderm_pCustomLoader
 

Private Member Functions

virtual void Execute () override
 Override this to implement the task's supposed functionality.
 

Friends

class plResourceManager
 
class plResourceManagerState
 
class plResourceManagerWorkerDataLoad
 

Additional Inherited Members

- Public Member Functions inherited from plTask
void ConfigureTask (const char *szTaskName, plTaskNesting nestingMode, plOnTaskFinishedCallback callback=plOnTaskFinishedCallback())
 Sets the most important task properties. This has to be done before the task is added to a task group for the first time.
 
void SetMultiplicity (plUInt32 uiMultiplicity)
 Changes the multiplicity of this task.
 
plUInt32 GetMultiplicity () const
 
bool IsTaskFinished () const
 Returns whether the task has been finished. This includes being canceled.
 
bool HasBeenCanceled () const
 Can be used inside an overridden 'Execute' function to terminate execution prematurely.
 
- Public Member Functions inherited from plRefCounted
virtual ~plRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from plRefCountingImpl
 plRefCountingImpl ()=default
 Constructor.
 
 plRefCountingImpl (const plRefCountingImpl &rhs)
 
void operator= (const plRefCountingImpl &rhs)
 
plInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
plInt32 ReleaseRef () const
 Decrements the reference counter. Returns the new reference count.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
plInt32 GetRefCount () const
 Returns the current reference count.
 
- Protected Member Functions inherited from plTask
virtual void ExecuteWithMultiplicity (plUInt32 uiInvocation) const
 Override this to implement the task's supposed functionality.
 

Detailed Description

[internal] Worker task for uploading resource data. Depending on the resource type, this may get scheduled to run on the main thread or on any thread.

Member Function Documentation

◆ Execute()

void plResourceManagerWorkerUpdateContent::Execute ( )
overrideprivatevirtual

Override this to implement the task's supposed functionality.

This function is called for tasks that do not use multiplicity. They are executed a single time for each time they are added to the plTaskSystem.

Reimplemented from plTask.


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