mLock(3)

πŸ’– mLock(3) β€” the vibe check your mutex has been waiting for πŸ’–

okay so bestie, quick little intro: this page lives in the util/ulocks.h manual, and it's all about locking one (1) mutex. that's it. that's the whole girl. but she's important, so let's get into it 🫢


✨ NAME ✨

mLock β€” lock a mutex. yes queen, that's literally the whole job description πŸ’…


🌸 SYNOPSIS 🌸

#include <util/ulocks.h>

NEOERR *mLock(pthread_mutex_t *mutex);

look at her. so simple. so iconic. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • mutex β€” the mutex you wanna lock, bestie. hand it over. 🫴

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, fr fr: mLock locks the mutex mutex. πŸ’–

And listen β€” this call blocks until the mutex is actually acquired. like, it will just stand there in the group chat waiting for its turn, no matter how long that takes. it does not leave. it does not get distracted. it waits. 😭

MT-Level: Safe. ✨ she's thread-safe, she's well-adjusted, she's the moment. no cap.

🌈 RETURN VALUE 🌈

None. πŸ’€ nothing. nada. she locks the mutex and she does not give you a lil status report about it. that's just her energy.


πŸ’œ SEE ALSO πŸ’œ

her whole friend group, because they literally cannot function without each other, iykyk:

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


and that's the page, bestie!! this absolute banger of a manpage comes courtesy of ClearSilver, dated 12 July 2007 β€” yeah she's vintage, she's classic, she's been serving lock energy since before some of us were born, and honestly? she ate. πŸ’…βœ¨πŸŽ€πŸ¦‹