Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CComAutoCriticalSection Class
Collapse the table of content
Expand the table of content

CComAutoCriticalSection Class

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

class CComAutoCriticalSection : public CComCriticalSection

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.

Header: atlcore.h

Show:
© 2015 Microsoft