dictReleaseLock(3)

✨ dictReleaseLock β€” NAME ✨

okay bestie, gather round, because this one is short but it's important πŸ’…

dictReleaseLock β€” release lock on value. that's it. that's the whole job. she's a one-task queen πŸ‘‘

(it lives in the util/dict.h manual, iykyk πŸ¦‹)


πŸŽ€ SYNOPSIS πŸŽ€

#include <util/dict.h>

void dictReleaseLock(dictCtx dict, void *lock);

no cap, that's the entire signature. two args, zero drama, returns nothing 🫢


🌸 ARGUMENTS 🌸

  • dict β€” the dictionary that's holding the value you wanna release. she's the container, she's the vibe πŸ’–
  • lock β€” the lock to release. the actual thing you're letting go of ✨

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea πŸ“: this function releases the lock on the value that's associated with lock. that's literally her whole thing.

and once that lock is released? the dictCleanupFunc callback can be called for the value πŸ‘€ (peep dictCleanup() if you wanna know more, bestie).

MT-Level: Safe if dict is thread-safe. no cap, that's the whole caveat πŸ”₯

not me making you read a caveat but like. read the caveat. MT-level conditions are not a vibe check you can skip πŸ’€

🌈 RETURN VALUE 🌈

None. nothing. nada. she gives you zero back, she just does πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

your reading list, bestie, go off:


and that's the whole page, angel πŸ‘‘ this little icon came from ClearSilver, dated 12 July 2007 β€” yes she's vintage, yes she still slays, periodt πŸ’–βœ¨πŸŽ€