docs.unity3d.com
    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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023