Export (0) Print
Expand All

CComAutoCriticalSection Class

CComAutoCriticalSection provides methods for obtaining and releasing ownership of a critical section object.

class CComAutoCriticalSection : public CComCriticalSection

Remarks

CComAutoCriticalSection is similar to class CComCriticalSection, except CComAutoCriticalSection automatically initializes the critical section object in the constructor.

Typically, you use CComAutoCriticalSection through the typedef name AutoCriticalSection. This name references CComAutoCriticalSection when CComMultiThreadModel is being used.

The Init and Term methods from CComCriticalSection are not available when using this class.

Requirements

Header: atlcore.h

See Also

Class Members | CComFakeCriticalSection | ATL Class Overview | CComCriticalSection

Show:
© 2015 Microsoft