docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SpinLockExclusive.ScopedLock

    IDisposable scoped structure that holds SpinLockExclusive. Should be using with using

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Logging
    Assembly: Unity.Logging.dll
    Syntax
    public struct SpinLockExclusive.ScopedLock : IDisposable

    Constructors

    ScopedLock(SpinLockExclusive)

    Creates ScopedLock and locks SpinLockExclusive

    Declaration
    public ScopedLock(SpinLockExclusive sl)
    Parameters
    Type Name Description
    SpinLockExclusive sl

    SpinLock to lock

    Methods

    Dispose()

    Unlocks the lock

    Declaration
    public void Dispose()

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)