IPC@CHIP® RTOS-LNX – API Documentation |
![]() |
◆ RTX_Release_Sem()Assuming that the calling task is the resource semaphore owner, the semaphore's usage count (spin lock) is reduced by one. If this count reaches zero, than the calling task is no longer the owner of this semaphore and the semaphore is free for access by another task. If semaphore's usage count has reached zero and tasks are waiting in the semaphore's priority queue for this resource, the task at the head of this queue would then be granted ownership. If this waiting task is higher priority than the calling task, an immediate task switch will occur. The calling task must be the current owner or this API fails with no operation and error code RTX_EC_NOT_OWNED_BY_CALLER.
|