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

SpinLock.Exit Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Releases the lock.

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

'Declaration
Public Sub 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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft