SEM_new
Application Program Interface
2-375
C Interface
Syntax
Void SEM_new(sem, count);
Parameters
SEM_Handle sem;
/* pointer to semaphore object */
Int
count;
/* initial semaphore count */
Return Value
Void
Description
SEM_new initializes the semaphore object pointed to by sem with count.
The function should be used on a statically created semaphore for
initialization purposes only. No task switch occurs when calling
SEM_new.
Constraints and
Calling Context
❏
count must be greater than or equal to 0
❏
no tasks should be pending on the semaphore when SEM_new is
called
See Also
SEM_new
Initialize semaphore object