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

Function cv_destroy

freebsd/kern/kern_condvar.c:88–99  ·  view source on GitHub ↗

* Destroy a condition variable. The condition variable must be re-initialized * in order to be re-used. */

Source from the content-addressed store, hash-verified

86 * in order to be re-used.
87 */
88void
89cv_destroy(struct cv *cvp)
90{
91#ifdef INVARIANTS
92 struct sleepqueue *sq;
93
94 sleepq_lock(cvp);
95 sq = sleepq_lookup(cvp);
96 sleepq_release(cvp);
97 KASSERT(sq == NULL, ("%s: associated sleep queue non-empty", __func__));
98#endif
99}
100
101/*
102 * Wait on a condition variable. The current thread is placed on the condition

Callers 8

sendfile_sync_destroyFunction · 0.70
tty_deallocFunction · 0.70
seltdfiniFunction · 0.70
ksem_dropFunction · 0.70
sema_destroyFunction · 0.70
audit_pipe_freeFunction · 0.50
bcm2835_audio_detachFunction · 0.50
tun_destroyFunction · 0.50

Calls 3

sleepq_lockFunction · 0.85
sleepq_lookupFunction · 0.85
sleepq_releaseFunction · 0.85

Tested by

no test coverage detected