Command disabled: backlink
 
Available Languages?:

OSA : OS_Task_IsEnable

OS_Task_IsEnable (OST_TASK_POINTER tp)

Check if another task is active (created).

Before calling this service you should be sure that variable tp was initialized.

Call allowed:

Everywhere

Parameters:

tp Pointer to task descriptor (OST_TASK_POINTER)

Returns:

nothing

false task is not active
true task is created

Example:

OST_MSG_CB msg_cb;
 
void Task (void)
{
    for (;;) {
        /*...*/
        if (OS_Task_IsEnable(tp)) {
            OS_Msg_Send(msg_cb, "Enabled.");
        };
        /*...*/
    }
}

Old style name

OS_IsTaskEnable

See also

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