Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.