DeleteCriticalSection

This function releases all resources used by a critical section object that is not owned.

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.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coremain.lib.

See Also

EnterCriticalSection | InitializeCriticalSection | LeaveCriticalSection

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.