次の方法で共有


GDI Semaphore Services

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.

Function Description

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.