Exit()

Monitor::Exit(const SharedPtr<Object>&) method

Releases an exclusive lock on the specified object.

static void System::Threading::Monitor::Exit(const SharedPtr<Object> &obj)

Arguments

ParameterTypeDescription
objconst SharedPtr<Object>&The object on which to release the lock.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe obj parameter is null.
SynchronizationLockExceptionThe current thread does not own the lock for the specified object.

See Also