Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Signal_Semaphore
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
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.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
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