@CHIP-RTOS C Library V2.06 - RTOS API
RTX_Get_Sem
Attempt to get use of a counting semaphore, without waiting. int RTX_Get_Sem ( int semID ); Parameters
semID
- The semaphore ID of a counting semaphore
acquired by a call to RTX_Create_Sem.
Return Value
- 0 on success (semaphore granted) else
error code.
Comments
- This call returns with an error if the semaphore is in use
(represented as semaphore count zero). Otherwise the semaphore
count is decremented by one and the caller is granted the semaphore.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|