_CritSec m_critsec;
Remarks
A CComAutoCriticalSection or CComFakeCriticalSection object. The critical section class _CritSec is determined by the thread model: CComAutoCriticalSection if multithreaded, and CComFakeCriticalSection if single-threaded.
If the thread model is multithreaded, m_critsec is a CComAutoCriticalSection object and provides access to CComAutoCriticalSection's methods and a CRITICAL_SECTION object.
If the thread model is single-threaded, a critical section is not needed and m_critsec is a CComFakeCriticalSection object.