Class LoadingThread
Resources loading thread.
Assembly: FlaxEngine.dll
File: Engine/Content/Loading/LoadingThread.h
Syntax
public class LoadingThread : public IRunnable
Constructors
~LoadingThread()
Declaration
public ~LoadingThread()
LoadingThread()
Declaration
public LoadingThread()
Fields
_exitFlag
Declaration
protected int64 _exitFlag
Field Value
|
int64
|
_thread
Declaration
protected Thread* _thread
Field Value
|
Thread
|
_totalTasksDoneCount
Declaration
protected int32 _totalTasksDoneCount
Field Value
|
int32
|
Methods
Exit()
Exits the runnable object
Declaration
public virtual void Exit() override
Overrides
Join()
Stops the calling thread execution until the loading thread ends its execution.
Declaration
public void Join()
NotifyExit()
Set exit flag to true so thread must exit
Declaration
public void NotifyExit()
Run()
Executes the runnable object.
Declaration
public virtual int32 Run() override
Returns
|
int32
The exit code. Non-zero on error. |
Overrides
Run(class ContentLoadTask* task)
Runs the specified task.
Declaration
public void Run(class ContentLoadTask* task)
Parameters
|
class ContentLoadTask
task
The task. |
Start(const String& name)
Starts thread execution.
Declaration
public bool Start(const String& name)
Parameters
|
String
name
The thread name. |
Returns
|
bool
True if cannot start, otherwise false |
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
|
String
|