This function is similar to sema_wait but waits for the host to signal one of the ten host semaphores maintained by the Diamond kernel. Signalling a host semaphore is discussed under Asynchronous Input.
The parameter 'n' identifies the host semaphore on which the current thread wishes to wait, and must be in the range 0 ≤ n ≤ 9.
|