OSA : OS_IsError

bool OS_IsError ()

Check if error in OS_Task_Create.

Call allowed:

Everywhere

Parameters:

None

Returns:

false Task was created successfully
true There was no free task descriptor to create task.

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_IsError ();
        /*...*/
    }
}

See also