Command disabled: backlink
 
Available Languages?:

OSA : OS_Task_Stop

OS_Task_Stop ()

Allowed only in task

Stop task and delete it from the list of active tasks. A task can only be stopped by itself. To stop another task use service OS_Task_Delete().

Call allowed:

Only in task

Parameters:

None

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        // Free all resources
        /*...*/
        // And stop current task
        OS_Task_Stop();
        /*...*/
    }
}

Old style name

OS_StopTask

See also

 
en/osa/ref/allservices/os_task_stop.txt · Last modified: 07.10.2010 13:58 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki