docs.unity.cn
    Show / Hide Table of Contents

    Class PerThreadData

    Class that is used by logging to save some per-thread data for logging management. Usually stores thread's LoggerHandle that is currently used

    Inheritance
    Object
    PerThreadData
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Logging
    Syntax
    public static class PerThreadData

    Properties

    ThreadLoggerHandle

    Current LoggerHandle in this thread. Used internally by mirror struct's implicit constructors

    Declaration
    public static LoggerHandle ThreadLoggerHandle { get; set; }
    Property Value
    Type Description
    LoggerHandle

    Methods

    Initialize()

    Initialize static data

    Declaration
    [BurstDiscard]
    public static void Initialize()

    Reset()

    Reset all per thread data

    Declaration
    public static void Reset()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, May 31, 2023