1.4.4.4 OSAL_SEM_Post Function

1.4.4.4 C

OSAL_RESULT OSAL_SEM_Post(OSAL_SEM_HANDLE_TYPE* semID)

1.4.4.4 Summary

Posts a semaphore or increments a counting semaphore.

1.4.4.4 Description

This function posts a binary semaphore or increments a counting semaphore. The highest priority task currently blocked on the semaphore will be released and made ready to run.

1.4.4.4 Precondition

Semaphore must have been created.

1.4.4.4 Parameters

ParametersDescription
semIDPointer to the Semaphore ID

1.4.4.4 Returns

OSAL_RESULT_TRUE - Semaphore posted.

OSAL_RESULT_FALSE - Semaphore not posted.

1.4.4.4 Example

OSAL_SEM_Post(&semSignal);

1.4.4.4 Remarks

None.