Difference between revisions of "MC-Basic:SEMAPHOREGIVE"

From SoftMC-Wiki
Jump to: navigation, search
Line 38: Line 38:
 
* [[MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
 
* [[MC-Basic:SEMAPHORETAKE|SEMAPHORETAKE]]
  
[[Category:Axystems:MC-Basic:Semaphore Handling|SEMAPHOREGIVE]]
+
[[Category:MC-Basic:Semaphore Handling|SEMAPHOREGIVE]]
 
}}
 
}}

Revision as of 09:17, 22 May 2014

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