MC-Basic:SEMAPHOREGIVE

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= semgive |SYNTAX= semgive(<''semaphore name''>) |AVAILABILITY= Versions 3.7.x and higher |DESCRIPTION= SEMGIVE releases a semaphore. If the semaphore wa…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SEMGIVE releases a semaphore. If the semaphore was taken before, it is marked as a free semaphore and any task may take it by using the SEMTAKE command. If the semaphore was already free, its status does not change. If a task takes the semaphore using SEMTAKE, the semaphore may be released by the same task or by any task in the system (even from the command line).

Short form

semgive

Syntax

semgive(<semaphore name>)

Availability

Versions 3.7.x and higher

Scope

Task, Terminal

Examples


semGive(SEM1)                                          ‘release the semaphore

See Also