LeaveCriticalSection

Give up ownership of a critical section object.

void LeaveCriticalSection (LPCRITICAL_SECTION lock);

Required Header
<process.h>

Return Value

None.

Parameters

lock

  Pointer to a critical section object

Remarks

The LeaveCriticalSection function returns ownership of the critical section pointed to by lock, so other threads may be released from their waiting condition and obtain ownership of the critical section object.

Process and Threads

See Also    EnterCriticalSection, InitialiseCriticalSection