IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

RTX_EC RTX_Release_Sem ( RTX_ID  semID  ) 

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.

semID Semaphore handle
Zero on success, else error code.
See also:
RTX_Free_Sem()     RTX_Sem_Wait()
SC2x3 V1.00 - CLIB V1.00

Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:37 2017 by Doxygen 1.6.1