CCritSec Class
The critical section object provides intraprocess synchronization. The current implementation uses the Microsoft® Win32® application programming interfaces (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
CCritSec::CCritSec | Constructs a CCritSec object. |
Lock | Locks the critical section object. |
Unlock | Unlocks the critical section object. |
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.