CComObjectRootEx::Unlock

If the thread model is multithreaded, this method calls the Win32 API function LeaveCriticalSection, which releases ownership of the critical section object obtained through a private data member.

void Unlock( );

Remarks

To obtain ownership, the thread must call Lock. Each call to Lock requires a corresponding call to Unlock to release ownership of the critical section.

If the thread model is single-threaded, this method does nothing.

Requirements

Header: atlcom.h

See Also

Reference

CComObjectRootEx Class

CComObjectRootEx::Lock