Click or drag to resize
SpinLock Methods

The SpinLock type exposes the following members.

Methods
  NameDescription
Public methodAcquireLock
Locks the SpinLock and returns an object that unlocks the SpinLock when it is disposed.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLock
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.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnlock
Releases the lock on the SpinLock. This will unlock the SpinLock even if Lock was never called - only call this after Lock has returned.
Top
See Also