Expand Minimize

EngDeleteSafeSemaphore function

The EngDeleteSafeSemaphore function removes a reference to the specified safe semaphore.

Syntax


VOID EngDeleteSafeSemaphore(
  _Inout_  ENGSAFESEMAPHORE *pssem
);

Parameters

pssem [in, out]

Pointer to the ENGSAFESEMAPHORE structure that contains the safe semaphore from which to delete a reference.

Return value

None

Remarks

EngDeleteSafeSemaphore deletes the semaphore only when the last reference to it has been removed.

EngInitializeSafeSemaphore and EngDeleteSafeSemaphore are thread-safe, operating under a lock and maintaining a reference count on the semaphore. This guarantees that only one semaphore is created regardless of the number of simultaneous calls to it, and that the semaphore exists until the last reference to it is released.

Every caller of EngInitializeSafeSemaphore should call EngDeleteSafeSemaphore when it no longer needs the semaphore.

Requirements

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngInitializeSafeSemaphore
ENGSAFESEMAPHORE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft