MC-Basic:COMMON SHARED ... AS SEMAPHORE

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= COMMON SHARED <''semaphore name''> AS SEMAPHORE |AVAILABILITY= AllVersions Return Value:            |DESCRIPTION= Defines new sem…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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