Share via


CComAutoCriticalSection クラス

CComAutoCriticalSection には、クリティカル セクション オブジェクトの所有権を取得および解放するためのメソッドが用意されています。

class CComAutoCriticalSection : public CComCriticalSection

解説

CComAutoCriticalSection は、コンストラクターでクリティカル セクション オブジェクトを自動的に初期化する点を除いて、CComCriticalSection クラスとよく似ています。

通常、CComAutoCriticalSection は typedef 名 AutoCriticalSection を通じて使用します。 この typedef 名は、CComMultiThreadModel が使用されている場合は CComAutoCriticalSection を参照します。

このクラスの使用中は、CComCriticalSectionInit メソッドおよび Term メソッドを使用できません。

必要条件

**ヘッダー:**atlcore.h

参照

参照

CComFakeCriticalSection クラス

CComCriticalSection クラス

その他の技術情報

CComAutoCriticalSection のメンバー

ATL クラスの概要