This method creates an RiCOSSemaphore object.
RiCOSSemaphore *RiCOSSemaphore_create(
unsigned long semFlags, unsigned long initialCount,
unsigned long maxCount, const char *const name);
semFlags
The adapter-specific creation flags
initialCount
The initial number of tokens available in the semaphore
maxCount
The maximum number of tokens available in the semaphore
name
The unique name of the semaphore
The newly created RiCOSSemaphore object
RiCOSSemaphore * RiCOSSemaphore_create(
unsigned long semFlags, unsigned long initialCount,
unsigned long maxCount, const char * const name)
{
RiCOSSemaphore * me = malloc(sizeof(RiCOSSemaphore));
RiCOSSemaphore_init(me, semFlags, initialCount,
maxCount, name);
return me;
}