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

CComCritSecLock Class

This class provides methods for locking and unlocking a critical section object.

template< 
   class TLock 
> class CComCritSecLock

TLock

The object to be locked and unlocked.

Name

Description

CComCritSecLock::Lock

Call this method to lock the critical section object.

CComCritSecLock::Unlock

Call this method to unlock the critical section object.

Use this class to lock and unlock objects in a safer way than with the CComCriticalSection Class or CComAutoCriticalSection Class.

Header: atlbase.h

Show:
© 2015 Microsoft