Share 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

Reference

CComApartment Class

CComApartment::Unlock

CComApartment::GetLockCount

CComApartment::m_nLockCnt