OSA : OS_IsEventError

bool OS_IsEventError ()

Check if event error (for example signalling counting semaphore when it has maximum value).

Call allowed:

Everywhere

Parameters:

None

Returns:

false Event operation OK
true There was an event error

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Smsg_Send_Now(smsg, 10);
        if (OS_IsEventError()) {
            /* previous simple message was overwritten */
        };
        /*...*/
    }
}

See also