This instruction stops the program (thus the task) until the condition expressed becomes true.
Syntax |
mt_wait (cond) |
---|---|
cond |
It is any expression |
Validity |
Task |
Note |
It should normally be used in tasks whose execution is required on command (event). In fact, tasks, by standing idle, leave more execution time for other tasks (time-sharing). To stop the task for an interval of time use dwell |
Examples of use:
|