@CHIP-RTOS C Library V2.00 - RTOS API
RTX_Release_Sem
Release a resource semaphore. int RTX_Release_Sem ( int semID ); Parameters
semID
- The semaphore ID of a resource or counting semaphore
acquired by a call to RTX_Create_Sem.
Return Value
- 0 on success else
error code.
Comments
- The resource's usage count is decremented by one for each call to this
function. The resource is not freed until the usage count becomes zero.
Once freed, the resource will immediately be given to the task (if any)
which is waiting at the head of this semaphore's wait queue. Task
rescheduling occurs immediately if necessary.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|