EngAcquireSemaphore

VOID EngAcquireSemaphore(

    HSEMAPHORE  hsem
  );

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

Parameters

hsem

Handle to the semaphore associated with the resource to be acquired.

Comments

EngAcquireSemaphore allows exclusive access to the driver resource associated with the semaphore by locking out all other threads from accessing the semaphore’s resource.

A call to this routine should be followed with a call to EngReleaseSemaphore as quickly as possible.

See Also

EngCreateSemaphore, EngDeleteSemaphore, EngReleaseSemaphore