NNG_CV_WAKE1(3supp)
β¨ NAME β¨
okay so welcome to the NNG_CV_WAKE1(3supp) page β manual name and all, bestie β and this one is about nng_cv_wake1: wake one waiter. π
π¦ SYNOPSIS π¦
#include <nng/nng.h>
void nng_cv_wake1(nng_cv *cv);
π DESCRIPTION π
nng_cv_wake1() wakes at most one thread waiting for the condition variable cv to be signaled in the nng_cv_wait() or nng_cv_until() functions. π«Ά
The caller must have ownership of the mutex that was used when cv was allocated. π
Note: the caller should already have set the condition that the waiters will check, while holding the mutex. π
Note: the caller cannot predict which waiter will be woken, so the design must ensure that it is sufficient that any waiter be woken. When in doubt, it is safer to use nng_cv_wake(). π¨
π RETURN VALUES π
None. literally none, bestie. β¨
π ERRORS π
None. no errors, no drama. π
πΈ SEE ALSO πΈ
nng_cv_alloc(3supp)nng_cv_until(3supp)nng_cv_wait(3supp)nng_cv_wake(3supp)nng_mtx_alloc(3supp)nng_mtx_lock(3supp)nng_mtx_unlock(3supp)nng(7)
mwah π that's the whole page β from the NNG Reference Manual, dated 2026-01-13, and it's the NNG_CV_WAKE1(3supp) page. slay. π
π¦ where this page comes from
- alpine 3.24: nng-doc 1.11-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms