OSA : OS_Task_IsPaused

OS_Task_IsPaused (OST_TASK_POINTER tp)

Check if another task is paused.

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 paused
true task is paused

Example:

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

Old style name

OS_IsTaskPaused

See also