Signal_Semaphore

include vmm.inc

mov eax, Semaphore ; semaphore handle

VMMcall Signal_Semaphore


The Signal_Semaphore service unblocks the virtual machine (if any) waiting on the specified semaphore. The unblocked virtual machine checks the state of the semaphore's unblock count, and resumes execution if the count is zero or greater.

Parameters

Semaphore

Specifies a handle identifying the semaphore to signal.

Return Value

This service has no return value.

Comments

This service increments the semaphore's token count. If the incremented token count is less than or equal to zero, the service increments the semaphore's unblock count and schedules a wake up event for the virtual machine blocked on the semaphore. Otherwise, this service returns immediately.

Uses

Flags

See Also

Create_Semaphore, Wait_Semaphore