EngIsSemaphoreOwnedByCurrentThread function

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

Syntax


BOOL EngIsSemaphoreOwnedByCurrentThread(
  _In_ HSEMAPHORE hsem
);

Parameters

hsem [in]

Handle to the semaphore.

Return value

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

Requirements

Target platform

Universal

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

EngAcquireSemaphore
EngCreateSemaphore
EngReleaseSemaphore
EngIsSemaphoreOwned

 

 

Send comments about this topic to Microsoft

Show: