CComAutoThreadModule::Unlock

 

As of ATL 7.0, CComAutoThreadModule is obsolete: see ATL Module Classes for more details.

Syntax

LONG Unlock( );

Return Value

A value that may be useful for diagnostics or testing.

Remarks

Performs an atomic decrement 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.

When the module lock count reaches zero, the module can be unloaded.

Requirements

Header: atlbase.h

See Also

CComAutoThreadModule Class
CComAutoThreadModule::Lock