Difference between revisions of "MC-Basic:COMMON SHARED ... AS SEMAPHORE"
m (Miborich moved page Axystems:MC-Basic:COMMON SHARED ... AS SEMAPHORE to MC-Basic:COMMON SHARED ... AS SEMAPHORE: Global renaming of Axystems: namespace into (Main):) |
|||
Line 41: | Line 41: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:SEMAPHOREGIVE|SEMAPHOREGIVE]] |
* [[Axystems:MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]] | * [[Axystems:MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]] | ||
[[Category:Axystems:MC-Basic:Declarations|COMMON SHARED ... AS SEMAPHORE]] | [[Category:Axystems:MC-Basic:Declarations|COMMON SHARED ... AS SEMAPHORE]] | ||
}} | }} |
Revision as of 08:40, 22 May 2014
Defines new semaphore variables in the system. There are only two function for accessing this variable type: SEMTAKE and SEMGIVE. No other operations (e.g., printing, arguments) are allowed with this data type.
Syntax
COMMON SHARED <semaphore name> AS SEMAPHORE
Availability
All versions
Arrays of semaphores are Since Version 4.9.7
Scope
Configuration, Task, Terminal
Since Version 4.5.17 the global (common shared ) declaration is also possible from the Library context.
Examples
-->common shared sem as semaphore
-->?semtake(sem)
1
-->semgive(sem)
-->