MCPcopy Create free account
hub / github.com/F-Stack/f-stack / wakeup_any

Function wakeup_any

freebsd/kern/kern_synch.c:375–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void
376wakeup_any(const void *ident)
377{
378 int wakeup_swapper;
379
380 sleepq_lock(ident);
381 wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP | SLEEPQ_UNFAIR,
382 0, 0);
383 sleepq_release(ident);
384 if (wakeup_swapper)
385 kick_proc0();
386}
387
388/*
389 * Signal sleeping waiters after the counter has reached zero.

Callers 2

taskqueue_thread_enqueueFunction · 0.70

Calls 4

sleepq_lockFunction · 0.85
sleepq_signalFunction · 0.85
sleepq_releaseFunction · 0.85
kick_proc0Function · 0.85

Tested by

no test coverage detected