Expand Minimize
This topic has not yet been rated - Rate this topic

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

Version

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

Header

Winddi.h (include Winddi.h)

Library

Contained in Win32k.sys. Link to Win32k.lib.

See also

EngAcquireSemaphore
EngCreateSemaphore
EngReleaseSemaphore
EngIsSemaphoreOwned

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.