* Make a thread sleeping on the specified identifier runnable. * May wake more than one thread if a target thread is currently * swapped out. */
| 361 | * swapped out. |
| 362 | */ |
| 363 | void |
| 364 | wakeup_one(const void *ident) |
| 365 | { |
| 366 | int wakeup_swapper; |
| 367 | |
| 368 | sleepq_lock(ident); |
| 369 | wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP, 0, 0); |
| 370 | sleepq_release(ident); |
| 371 | if (wakeup_swapper) |
| 372 | kick_proc0(); |
| 373 | } |
| 374 | |
| 375 | void |
| 376 | wakeup_any(const void *ident) |
no test coverage detected