====== OSA : OS_Yield ======
<color blue>**OS_Yield ()**</color>\\ 
=== ===

{{osa:ref:attr_call_task.png|Allowed only in task}}{{osa:ref:attr_call_ct_sw.png|Switches context}}

Return to scheduler.

=== Call allowed: ===
Only in task


=== Parameters: ===
None

=== Returns: ===
nothing

=== Example: ===
<code cpp>
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Yield();
        /*...*/
    }
}
</code>

=== See also ===

----
  * [[en:osa:ref:services:alphabetical|Alphabetical]]
  * [[en:osa:ref:services:brieflist|All services]]
~~UP~~