Difference between revisions of "MC-Basic:COMMON SHARED ... AS SEMAPHORE"

From SoftMC-Wiki
Jump to: navigation, search
m
m (Text replace - "Since AMCS 0.4.5.17 version" to "Since Version 4.5.17")
Line 28: Line 28:
 
Configuration, Task, Terminal
 
Configuration, Task, Terminal
  
Since AMCS 0.4.5.17 version the global (common shared ) declaration is also  possible from the Library context.
+
Since Version 4.5.17 the global (common shared ) declaration is also  possible from the Library context.
  
 
|LIMITATIONS=
 
|LIMITATIONS=

Revision as of 14:11, 20 March 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 available 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)
-->

See Also