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

From SoftMC-Wiki
Jump to: navigation, search
m
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:COMMON_SHARED_..._AS_SEMAPHORE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 7: Line 8:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
All Versions
+
All versions<br>
Arrays of Semaphores are available since version 4.9.7.           
+
Arrays of semaphores are Since Version 4.9.7         
  
 
|DESCRIPTION=
 
|DESCRIPTION=
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.
+
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.
  
 
|TYPE=
 
|TYPE=
Line 28: Line 29:
 
Configuration, Task, Terminal
 
Configuration, Task, Terminal
  
Since AMCS 0.4.5.17 version the global (common shared ) declaration is possible from the Library context also .
+
Since Version 4.5.17 the global (common shared ) declaration is also  possible from the Library context.
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Line 35: Line 36:
 
|EXAMPLE=
 
|EXAMPLE=
 
-->common shared sem as semaphore<br>
 
-->common shared sem as semaphore<br>
 
 
-->?semtake(sem)<br>
 
-->?semtake(sem)<br>
 
 
1<br>
 
1<br>
 
 
-->semgive(sem)<br>
 
-->semgive(sem)<br>
 
 
-->
 
-->
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:SEMAPHOREGIVE|SEMAPHOREGIVE]]
+
* [[MC-Basic:SEMAPHOREGIVE|SEMAPHOREGIVE]]
* [[Axystems:MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
+
* [[MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
  
[[Category:Axystems:MC-Basic:Declarations|COMMON SHARED ... AS SEMAPHORE]]
+
[[Category:MC-Basic:Declarations|COMMON SHARED ... AS SEMAPHORE]]
 
}}
 
}}

Latest revision as of 09:33, 26 April 2017

Language: English  • 中文(简体)‎

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)
-->

See Also