Search Results for

    Show / Hide Table of Contents

    Class LoadingThread

    Resources loading thread.

    Inheritance
    Object
    IRunnable
    LoadingThread
    Inherited Members
    IRunnable::AfterWork(bool wasKilled)
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    Object::Flags
    IRunnable::Init()
    Object::OnDeleteObject()
    IRunnable::Stop()
    IRunnable::~IRunnable()
    Object::~Object()
    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
    IRunnable::Exit()

    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
    IRunnable::Run()

    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

    Overrides
    Object::ToString()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat