====== OSA : OS_Wait ======
**OS_Wait (condition)**\\
=== ===
{{osa:ref:attr_call_task.png|Allowed only in task}}{{osa:ref:attr_call_ct_sw.png|Switches context}}
Wait until //condition// is true.
=== Call allowed: ===
Only in task
=== Parameters: ===
{| class = "fpl"
|-
|//''condition''//
|Any boolean expression
|}
=== Returns: ===
nothing
=== Example: ===
void Task (void)
{
for (;;) {
/*...*/
OS_Wait(a < 5 && TMR1IF);
/*...*/
}
}
=== Old style name ===
**OS_WaitCondition**\\
**OS_Cond_Wait**\\
=== See also ===
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~