CComApartment::Lock

 

Increments the thread's lock count.

Syntax

LONG Lock( );

Return Value

A value that may be useful for diagnostics or testing.

Remarks

Called by CComAutoThreadModule::Lock.

The lock count on the thread is used for statistical purposes.

Requirements

Header: atlbase.h

See Also

CComApartment Class
CComApartment::Unlock
CComApartment::GetLockCount
CComApartment::m_nLockCnt