cCreate(3)
β¨ cCreate β¨
okay bestie, we're in util/ulocks.h territory and this one is genuinely such a vibe β it's the lil function that gets your condition variable up and running π
π NAME π
cCreate β initialize a condition variable. that's it. that's the whole job. she's simple, she's iconic, she's doing exactly one thing and doing it well π
πΈ SYNOPSIS πΈ
#include <util/ulocks.h>
NEOERR *cCreate(pthread_cond_t *cond);
look at her. one include, one call, no drama. π¦
π ARGUMENTS π
condβ the condition variable you wanna initialize, babes. hand her over and letcCreatedo her thing π
β¨ DESCRIPTION β¨
so like, it initializes the condition variable <cond>. that's the tea π
MT-Level: Safe for unique <cond>.
π«Ά heads up bestie: "safe for unique<cond>" means exactly what it says β each<cond>gets its own lane. don't go sharing one around and expect magic, ok?? iykyk.
π RETURN VALUE π
None.
not a NEOERR * you should ignore or anything β genuinely justβ¦ none. nothing. void energy. no cap π
π₯ SEE ALSO π₯
the whole friend group, fr fr:
mCreate(3)fCreate(3)mUnlock(3)fUnlock(3)cBroadcast(3)cSignal(3)fFind(3)cDestroy(3)cCreate(3)mDestroy(3)cWait(3)fLock(3)fDestroy(3)mLock
(yes cCreate(3) is in her own SEE ALSO list. main character behavior honestly. love that for her π
)
and that's the page!! brought to you by ClearSilver, dated 12 July 2007 β yeah she's an elder but she still ate πβ¨ go forth and initialize your condition variables, bestie ππ
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms