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 |
---|---|
Constructs a CCritSec object. |
|
Locks the critical section object. |
|
Unlocks the critical section object. |
Requirements
Header |
dshow.h, |
Library |
ole32.lib, |