Previous Next

EngIsSemaphoreOwnedByCurrentThread

The EngIsSemaphoreOwnedByCurrentThread function determines whether the currently executing thread holds the specified semaphore.

BOOL
  EngIsSemaphoreOwnedByCurrentThread(
    IN HSEMAPHORE  hsem
    );

Parameters

hsem
Handle to the semaphore.

Return Value

EngIsSemaphoreOwnedByCurrentThread returns TRUE if the currently executing thread holds the specified semaphore, and FALSE if it does not.

Headers

Declared in winddi.h. Include winddi.h.

See Also

EngAcquireSemaphore, EngCreateSemaphore, EngReleaseSemaphore, EngIsSemaphoreOwned