Table of contents
GDI
TOC
Collapse the table of content
Expand the table of content

GDI Semaphore Services

Last Updated: 2/14/2017

GDI provides a selection of services related to semaphores and safe semaphores. A driver can use these services to create or delete a semaphore, and acquire or release a semaphore.

FunctionDescription

EngAcquireSemaphore

Acquires the resource associated with the semaphore for exclusive access by the calling thread.

EngCreateSemaphore

Creates a semaphore object.

EngDeleteSafeSemaphore

Removes a reference to the specified safe semaphore.

EngDeleteSemaphore

Deletes a semaphore object from the system's resource list.

EngInitializeSafeSemaphore

Initializes the specified safe semaphore.

EngIsSemaphoreOwned

Determines whether any thread holds the specified semaphore.

EngIsSemaphoreOwnedByCurrentThread

Determines whether the currently executing thread holds the specified semaphore.

EngReleaseSemaphore

Releases the specified semaphore.

Send comments about this topic to Microsoft

© 2017 Microsoft