Search Results for

    Show / Hide Table of Contents

    Class ThreadRegistry

    Holds all created threads (except the main thread)

    Inheritance
    ThreadRegistry
    Assembly: FlaxEngine.dll
    File: Engine/Threading/ThreadRegistry.h
    Syntax
    public class ThreadRegistry

    Methods

    Add(Thread* thread)

    Declaration
    public static void Add(Thread* thread)
    Parameters
    Thread thread

    Count()

    Gets amount of threads in a registry

    Declaration
    public static int32 Count()
    Returns
    int32

    The amount of threads used by the engine.

    GetThread(uint64 id)

    Gets thread with given ID

    Declaration
    public static Thread* GetThread(uint64 id)
    Parameters
    uint64 id

    Thread ID

    Returns
    Thread

    Founded thread, or null if is missing

    KillEmAll()

    Attempts to kill all threads. Also starts playing Metallica album Kill'Em All. Hit the Lights...

    Declaration
    public static void KillEmAll()

    Remove(Thread* thread)

    Declaration
    public static void Remove(Thread* thread)
    Parameters
    Thread thread

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat