fDestroy(3)

πŸ’… fDestroy(3) β€” util/ulocks.h

okay bestie, welcome to the fDestroy page, part of the util/ulocks.h family. this is a <util/ulocks.h> situation, and yes, we're about to say goodbye to a lock. it's giving closure. literally. 🫢


✨ NAME ✨

fDestroy β€” destroy a lock. that's it, that's the whole job, and she does it flawlessly. πŸŽ€


🌸 SYNOPSIS 🌸

#include <util/ulocks.h>

void fDestroy(int lock);

look at her. void return, one argument, zero drama. main character energy fr fr. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lock β€” the lock to destroy. that's the one you're sending off into the void. πŸ’€

πŸ’– DESCRIPTION πŸ’–

fDestroy destroys the lock <lock> that was created by fCreate() or fFind(). so if you made it or you found it, this is the function that takes it out. no cap.

MT-Level: Safe for unique <lock>. πŸ”₯

lowkey important: it's safe for a unique <lock> β€” the same lock being handled by multiple threads at once is a different story, and that story is not this one. πŸ’…

🌈 RETURN VALUE 🌈

None. she gives you nothing back and she's iconic for it. nothing. nada. the void returns void. ✨


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, obviously β€” go read these next, iykyk:

(yes, fDestroy(3) is in her own SEE ALSO. self-love, periodt. πŸŽ€)


ClearSilver dropped this one on 12 July 2007 and it's still serving. that's the sign-off bestie, go destroy some locks responsibly. mwah. πŸ’–βœ¨πŸ¦‹