Export (0) Print
Expand All

SpinLock.Exit Method

Releases the lock.

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

public void Exit()

ExceptionCondition
SynchronizationLockException

Thread ownership tracking is enabled, and the current thread is not the owner of this lock.

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

If you call Exit without having first called Enter the internal state of the SpinLock can become corrupted.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft