|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
The critical section object provides intraprocess synchronization. The current implementation uses the Microsoft Win32 application programming interfaces (APIs) that use the CRITICAL_SECTIONtype.
The safest way to use CCritSecobjects is to lock them with a CAutoLockobject that guarantees to unlock the object when it goes out of scope and compiles to efficient inline code.
|CCritSec::CCritSec||Constructs a CCritSecobject.|
|Lock||Locks the critical section object.|
|Unlock||Unlocks the critical section object.|