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

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
Line 47: Line 47:
 
* [[Axystems:MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
 
* [[Axystems:MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
  
 
+
[[Category:Axystems:MC-Basic:Declarations|COMMON SHARED ... AS SEMAPHORE]]
 
}}
 
}}

Revision as of 15:26, 17 March 2014

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

AllVersions Return Value:           

Scope

Configuration, Task, Terminal

Since AMCS 0.4.5.17 version the global (common shared ) declaration is possible from the Library context also .

Examples

-->common shared sem as semaphore

-->?semtake(sem)

1

-->semgive(sem)

-->

See Also