Available Languages?:

OSA : OS_Task_GetCur

OST_TASK_POINTER OS_Task_GetCur ()

Allowed only in task

Get pointer to task control block (OST_TASK_POINTER) of current task. This pointer can be used in services that control the task indirectly (OS_Task_Pause, OS_Task_Continue, etc). Usually this service is called at the beginning of the task-function.

Call allowed:

Only in task

Parameters:

None

Returns:

OST_TASK_POINTER Pointer to current task's descriptor

Example:

OST_TASK_POINTER tp_Task;
void Task (void)
{
    tp_Task = OS_Task_GetCur();
    for (;;) {
        /*...*/
    }
}

See also

 
en/osa/ref/allservices/os_task_getcur.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