CComCriticalSection::Unlock

This method calls the Windows CE function LeaveCriticalSection, which releases ownership of the critical section object contained in the m_sec data member. To first obtain ownership, the thread must call the Lock method. Each call to Lock requires a corresponding call to Unlock to release ownership of the critical section.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

void Unlock( );

See Also

CComCriticalSection::Lock, CComCriticalSection::Unlock, CComCriticalSection::m_sec, LeaveCriticalSection