docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SpinLockReadWrite.ScopedExclusiveLock

    IDisposable scoped structure that holds BurstSpinLockReadWrite in exclusive mode. 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 SpinLockReadWrite.ScopedExclusiveLock : IDisposable

    Constructors

    ScopedExclusiveLock(SpinLockReadWrite)

    Creates ScopedReadLock and locks SpinLockReadWrite in exclusive mode

    Declaration
    public ScopedExclusiveLock(SpinLockReadWrite sl)
    Parameters
    Type Name Description
    SpinLockReadWrite 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)