INtime SDK Help
DeleteCriticalSection (iwin32)
INtime SDK v7.1 > About INtime > Alternate APIs > iwin32 API > iwin32 API > DeleteCriticalSection (iwin32)

Releases all resources used by an un owned critical section object.

VOID DeleteCriticalSection(
    LPCRITICAL_SECTION lpCriticalSection
);

Parameters

lpCriticalSection
Pointer to the critical section object.

Remarks

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.

Return Values

None.

Requirements

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.

See Also

EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection, TryEnterCriticalSection, iwin32 API, iwin32 Overview