Exit Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Releases an exclusive lock on the specified object.

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

public static void Exit(
	Object obj
)

Parameters

obj
Type: System..::..Object
The object on which to release the lock.

The calling thread must own the lock on the obj parameter. If the calling thread owns the lock on the specified object, and has made an equal number of Exit and Enter calls for the object, then the lock is released. If the calling thread has not invoked Exit as many times as Enter, the lock is not released.

Show: