IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page

◆ RTX_Release_Sem()

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.

semIDSemaphore handle
Zero on success, else error code.
See also
RTX_Free_Sem()     RTX_Sem_Wait()

Top of page | Main page

Copyright © 2020 Beck IPC GmbH
Generated on Thu Mar 19 2020 11:08:05 by Doxygen 1.8.13