MC-Basic:COMMON SHARED ... AS SEMAPHORE
Defines new semaphore variablse in the system. There are only two function for accessing this variable type: SEMTAKE and SEMGIVE. No other operations (printing, arguments, …) are allowed with this data-type.
Syntax
COMMON SHARED <semaphore name> AS SEMAPHORE
Availability
All Versions
Arrays of Semaphores are available since version 4.9.7.
Scope
Configuration, Task, Terminal
Since AMCS 0.4.5.17 version the global (common shared ) declaration is also possible from the Library context.
Examples
-->common shared sem as semaphore
-->?semtake(sem)
1
-->semgive(sem)
-->