CComAutoCriticalSection

cComAutoCriticalSection 클래스

CComAutoCriticalSection 구하고 중요 섹션 개체의 소유권을 해제 방법을 제공 합니다. CComAutoCriticalSection 는 비슷하지만 클래스 CComCriticalSection, CComAutoCriticalSection 자동으로 중요 섹션 개체 생성자에서 초기화。

일반적으로, typedef 이름을 AutoCriticalSection통해 CComAutoCriticalSection 사용합니다. CComMultiThreadModel 를 사용 하는 경우이 이름은 참조 CComAutoCriticalSection。

CRT 시작 코드를 제거 하려는 경우에 전역 개체 또는 정적 클래스 멤버에 CComAutoCriticalSection 사용 하지 마십시오. 이 경우 CComCriticalSection 를 사용합니다。

# include lt;atlbase.h>

클래스 멤버

참고 항목nbsp;CComFakeCriticalSection(&N)

Index