CComAutoThreadModule::Lock

LONG Lock( );

Return Value

A value that may be useful for diagnostics or testing.

Remarks

Performs an atomic increment on the lock count for the module and for the current thread. CComAutoThreadModule uses the module lock count to determine whether any clients are accessing the module. The lock count on the current thread is used for statistical purposes.

CComAutoThreadModule OverviewClass Members

See Also   CComAutoThreadModule::Unlock, CComModule::m_nLockCnt, CComApartment::m_nLockCnt