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