SpinLock Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The SpinLock type exposes the following members.
| Name | Description | |
|---|---|---|
|
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. |
|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) |
|
Exit | Releases the lock. |
|
Exit(Boolean) | Releases the lock. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
|
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. |
|
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. |
|
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. |
Show: