next up previous contents index
Next: semSignal Up: Synchronization Operations Previous: semInit

semWait

   

Increments the use count for the semaphore. The current thread will either acquire the semaphore sem or give up control until a semSignal is done by another thread and the scheduler runs.

void semWait(Semaphore *sem)



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