Search Results for

    Show / Hide Table of Contents

    Class IRunnable

    Interface for runnable objects for multi-threading purposes.

    Inheritance
    Object
    IRunnable
    Inherited Members
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    Object::Flags
    Object::OnDeleteObject()
    Object::ToString()
    Object::~Object()
    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()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat