CCritSec Class (Compact 2013)

3/26/2014

CCritSec Class

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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

DirectShow Classes