System.Threading.SpinLock.Exit Method

Releases the lock.

Syntax

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public void Exit ()

Remarks

The default overload of SpinLock.Exit provides the same behavior as if calling SpinLock.Exit(bool) using true as the argument.

If you call SpinLock.Exit without having first called SpinLock.Enter(Boolean@) the internal state of the System.Threading.SpinLock can become corrupted.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0