Microsoft Windows CE 3.0  

CCritSec::Lock

Important:
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.

Locks the critical section object.

void Lock( );

Return Values

No return value.

Remarks

This member function locks the critical section object. You can make multiple lock calls on the same thread, but the CCritSec::Unlockmember function must be called a corresponding number of times before the object is unlocked. If the object is locked by another thread, the CCritSec::Lockmember function blocks until either the object is released or a "possible deadlock" exception occurs.