next up previous contents index
Next: semWait Up: Synchronization Operations Previous: Synchronization Operations

semInit

   

Initializes semaphore sem with a count of count. Semaphores in the kernel are normally allocated statically (i.e., Semaphore x;) and must be initialized ( semInit(&x, 1);) before they are used.

void semInit(Semaphore *sem, int count)



Larry Peterson
Wed Jan 10 10:40:08 MST 1996