Class IRunnable
Interface for runnable objects for multi-threading purposes.
Inheritance
IRunnable
Assembly: FlaxEngine.dll
File: Engine/Threading/IRunnable.h
Syntax
public class IRunnable : public Object
Constructors
~IRunnable()
Declaration
public virtual ~IRunnable()
Methods
AfterWork(bool wasKilled)
Called when thread ends work (via Kill or normally).
Declaration
public virtual void AfterWork(bool wasKilled)
Parameters
bool
wasKilled
True if thread has been killed. |
Exit()
Exits the runnable object
Declaration
public virtual void Exit()
Init()
Initializes the runnable object.
Declaration
public virtual bool Init()
Returns
bool
True if initialization was successful, otherwise false. |
Run()
Executes the runnable object.
Declaration
public virtual int32 Run() = 0
Returns
int32
The exit code. Non-zero on error. |
Stop()
Stops the runnable object. Called when thread is being terminated
Declaration
public virtual void Stop()