This function releases all resources used by an unowned critical section object.
At a Glance
Header file: | Winbase.h |
Windows CE versions: | 1.0 and later |
Syntax
void DeleteCriticalSection( LPCRITICAL_SECTION lpCriticalSection );
Parameters
lpCriticalSection
[in] Pointer to the critical section object.
Return Values
None.
Remarks
Deleting a critical section object releases all system resources used by the object. Once deleted, the critical section object cannot be specified in the EnterCriticalSection, TryEnterCriticalSection, or LeaveCriticalSection function.
If a critical section is deleted while it is still owned, the state of the threads waiting for ownership of the deleted critical section is undefined.
See Also
EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection