CComAutoCriticalSection::Lock

This method calls the Windows CE function EnterCriticalSection, which waits until the thread can take ownership of the critical section object contained in the m_sec data member. When the protected code has finished executing, the thread must call Unlock to release ownership of the critical section.

At a Glance

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

Syntax

void Lock( );