Releases all resources used by an unowned critical section object.
VOID DeleteCriticalSection( LPCRITICAL_SECTION lpCriticalSection );
lpCriticalSection
Deleting a critical section object releases all system resources used by that object. Once deleted, the critical section object cannot be specified in EnterCriticalSection, TryEnterCriticalSection, or LeaveCriticalSection.
If a critical section is deleted while still owned, the state of threads waiting for ownership of the deleted critical section is undefined.
None.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/winbase.h | windows.h | iwin32.lib |
Note
This function operates in the real-time portion of your application.
EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection, TryEnterCriticalSection, iwin32 API, iwin32 Overview