| SpinLock Methods |
The SpinLock type exposes the following members.
| Name | Description | |
|---|---|---|
| AcquireLock |
Locks the SpinLock and returns an object that unlocks the SpinLock when it is disposed.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Lock |
Acquires the lock on the SpinLock, blocking indefinitely until it manages to acquire the lock. Ensure that Unlock is always
called after Lock has returned.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Unlock |
Releases the lock on the SpinLock. This will unlock the SpinLock even if Lock was never called - only call this after Lock
has returned.
|