* Block the current thread until it is awakened from its sleep queue. */
| 649 | * Block the current thread until it is awakened from its sleep queue. |
| 650 | */ |
| 651 | void |
| 652 | sleepq_wait(const void *wchan, int pri) |
| 653 | { |
| 654 | struct thread *td; |
| 655 | |
| 656 | td = curthread; |
| 657 | MPASS(!(td->td_flags & TDF_SINTR)); |
| 658 | thread_lock(td); |
| 659 | sleepq_switch(wchan, pri); |
| 660 | } |
| 661 | |
| 662 | /* |
| 663 | * Block the current thread until it is awakened from its sleep queue |
no test coverage detected