NNG_MTX_UNLOCK(3supp)

πŸ“¦ version 1.11, in alpine 3.24

πŸ’… NNG_MTX_UNLOCK πŸ’…

okay so bestie, welcome to NNG_MTX_UNLOCK(3supp) from the NNG Reference Manual β€” this is the page about letting go of a mutex, and honestly it's giving "short but iconic." ✨


🌸 NAME 🌸

nng_mtx_unlock β€” unlock a mutex, aka the moment you finally release the vibe and let the other threads in 🫢


✨ SYNOPSIS ✨

#include <nng/nng.h>

void nng_mtx_unlock(nng_mtx *mtx);

like, that's it. two lines. main character energy fr fr πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So nng_mtx_unlock() relinquishes ownership of the mutex mtx that was previously acquired via nng_mtx_lock(). Basically: you grabbed the mic, you said your thing, now you hand the mic back. periodt. 🎀

⚠️ Important β€” and I'm gonna say this loud because it matters: a mutex can only be unlocked by the thread that locked it. Attempting to unlock a mutex that is not owned by the caller will result in undefined behavior. That's not a cute quirky bug, that's chaos. πŸ’€ Not me warning you twice. Do not pass go. Do not unlock a mutex that isn't yours. iykyk πŸ™ˆ

⭐ RETURN VALUES ⭐

None. Nothing. Nada. It's void, bestie β€” it does not come back with receipts. πŸ’…


🌈 ERRORS 🌈

None. Zero. Zip. No error codes to check, no errno to stress about. 🧚


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie β€” short, sweet, and absolutely not to be freestyled πŸŽ€

source/version: NNG Reference Manual Β· date: 2026-01-13 Β· page: NNG_MTX_UNLOCK(3supp) β€” mwah, love u, go unlock something you actually own πŸ’–πŸ¦‹

πŸ“¦ where this page comes from