Difference between revisions of "MC-Basic:COMMON SHARED ... AS SEMAPHORE"
m (Text replace - "All Versions" to "All versions") |
m |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:COMMON_SHARED_..._AS_SEMAPHORE}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 41: | Line 42: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:SEMAPHOREGIVE|SEMAPHOREGIVE]] |
− | * [[ | + | * [[MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]] |
− | [[Category | + | [[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)
-->