CComAutoDeleteCriticalSection Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CComAutoDeleteCriticalSection Class.

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

class CComAutoDeleteCriticalSection : public CComSafeDeleteCriticalSection

CComAutoDeleteCriticalSection derives from the class CComSafeDeleteCriticalSection. However, CComAutoDeleteCriticalSection overrides the Term method to private access, which forces internal memory cleanup to occur only when instances of this class go out of scope or are explicitly deleted from memory.

This class introduces no additional methods over its base class. See CComSafeDeleteCriticalSection and CComCriticalSection for more information on critical section helper classes.

CComCriticalSection

CComSafeDeleteCriticalSection

CComAutoDeleteCriticalSection

Header: atlcore.h

CComSafeDeleteCriticalSection Class
CComCriticalSection Class
Class Overview

Show: