Useful function for constructing an atomic semaphore.
Note: Deprecated. The use of mt_ats2() is recommended.
Syntax |
i32 mt_ats (i32 var [, i32 value=1]) |
||||||
---|---|---|---|---|---|---|---|
var |
Variable used as a semaphore |
||||||
value |
Value to be imposed (optional, default 1). Use value<>0 to get the semaphore, value=0 to release the semaphore |
||||||
Result
|
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
Example of use:
|