Exit Method
Collapse the table of content
Expand the table of content

SpinLock.Exit Method ()

.NET Framework (current version)

Releases the lock.

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

Public Sub Exit

Exception Condition

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2016 Microsoft