Search Results for

    Show / Hide Table of Contents

    Class ThreadLocal

    Per-thread local variable storage for basic types (POD). Implemented using atomic with per-thread storage indexed via thread id hashing. Consider using 'THREADLOCAL' define before the variable instead.

    Inheritance
    ThreadLocal
    Assembly: FlaxEngine.dll
    File: Engine/Scripting/Scripting.h
    Syntax
    public class ThreadLocal<T, MaxThreads>
    Type Parameters
    T

    MaxThreads

    Constructors

    ThreadLocal()

    Declaration
    public ThreadLocal()

    Fields

    _staticBuckets

    Declaration
    protected Bucket _staticBuckets[MaxThreads]
    Field Value
    Bucket

    Methods

    Clear()

    Declaration
    public void Clear()

    Count()

    Declaration
    public int32 Count() const
    Returns
    int32

    Get()

    Declaration
    public T Get()
    Returns
    T

    GetBucket()

    Declaration
    protected Bucket GetBucket()
    Returns
    Bucket

    GetValues(Array<T, AllocationType>& result)

    Declaration
    public void GetValues(Array<T, AllocationType>& result) const
    Parameters
    Array<T, AllocationType> result

    Type Parameters
    typename AllocationType

    Set(const T& value)

    Declaration
    public void Set(const T& value)
    Parameters
    T value

    Returns
    void

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