VOID EngAcquireSemaphore(
HSEMAPHORE hsem | |
); |
EngAcquireSemaphore acquires the resource associated with the semaphore for exclusive access by the calling thread.
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.