Partager via


CComApartment::Lock

Increments the thread's lock count.

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

Concepts

CComApartment Class

CComApartment Members

CComApartment::Unlock

CComApartment::GetLockCount

CComApartment::m_nLockCnt