Partager via


CCritSec Class

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Aa929473.23159e87-a21f-4e71-85be-b35e3f99c65b(en-us,MSDN.10).gif

This object provides intraprocess synchronization.

The current implementation uses the Microsoft® Win32® APIs that use the CRITICAL_SECTION type.

The safest way to use CCritSec objects is to lock them with a CAutoLock object that guarantees to unlock the object when it goes out of scope and compiles to efficient inline code.

Member Functions

Member function Description

CCritSec

Constructs a CCritSec object.

Lock

Locks the critical section object.

Unlock

Unlocks the critical section object.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment