Difference between revisions of "MC-Basic:SEMAPHOREGIVE"

From SoftMC-Wiki
Jump to: navigation, search
(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…')
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SEMAPHOREGIVE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 7: Line 8:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Versions 3.7.x and higher
+
Since Version 3.7.x
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 36: Line 37:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
+
* [[MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
 
 
  
 +
[[Category:MC-Basic:Semaphore Handling|SEMAPHOREGIVE]]
 
}}
 
}}

Latest revision as of 03:06, 28 April 2017

Language: English  • 中文(简体)‎

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

Since Version 3.7.x

Scope

Task, Terminal

Examples


semGive(SEM1)                                          ‘release the semaphore

See Also