Source files: src/MemSys/userq.c
Header files: incl/MemSys/simsys.h
YACSIM Semaphores are used for controlling the interaction of events in the simulator. The following semaphore functions are supported in RSIM:
This function creates a new semaphore with the name specified in sname and the initial semaphore value i.
This function activates the event at the head of the semaphore queue (added through a previous call to ActivitySchedSema or EventReschedSema). If there is no event, the semaphore value is incremented.