Create_Semaphore

include vmm.inc

mov     ecx, TokenCount
VMMCall Create_Semaphore
jc      error
mov     [Semaphore], eax
 

Allocates memory for and initializes a new semaphore. Uses EAX and Flags.

TokenCount
Initial count of tokens.

See Also

Destroy_Semaphore, Signal_Semaphore, Wait_Semaphore