IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


#define RTX_Create_Sem ( semID,
name,
initvalue   )     RTX_NewSem((RTX_ID *)semID, name, initvalue)

Create a new resource or counting semaphore. This wrapper C-library macro invokes the RTX_NewSem() API. In the legacy systems the semID was a signed integer and this macro converts this argument to a unsigned RTX_ID type.

Parameters:
semID Output parameter: New semaphore ID (handle) will be written here by this API. Caller must provide the memory.
name Up to 4 character name to give new semaphore. Nil terminator is optional.
initvalue Semaphore initial value
Returns:
Zero on success, else error code.
See also:
RTX_NewSem()
Since:
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