Export (0) Print
Expand All

SpinLock Methods

The SpinLock type exposes the following members.

  Name Description
Public method Enter Acquires the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method Exit() Releases the lock.
Public method Exit(Boolean) Releases the lock.
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
Public method TryEnter(Boolean) Attempts to acquire the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.
Public method TryEnter(Int32, Boolean) Attempts to acquire the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.
Public method TryEnter(TimeSpan, Boolean) Attempts to acquire the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.
Top
Show:
© 2014 Microsoft