void Unlock( );
Remarks
If the thread model is multithreaded, this method calls the Win32 API function LeaveCriticalSection, which releases ownership of the critical section object obtained through the m_critsec data member. 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.
CComObjectRootEx Overview | Class Members
See Also CComObjectRootEx::Lock, CComObjectRootEx::m_critsec