mDestroy(3)

πŸ’– mDestroy β€” bestie edition πŸ’–

okay so you're in the util/ulocks.h part of the ClearSilver manual, section 3, and today's main character is mDestroy: the girl whose whole job is destroying a mutex. yes, destroying. she's the cleanup crew. the one who turns the lights off after the party. and honestly? iconic. πŸ‘‘


✨ NAME ✨

mDestroy β€” destroy a mutex. that's it. that's the whole personality. πŸ’…


🌸 SYNOPSIS 🌸

#include <util/ulocks.h>

void mDestroy(pthread_mutex_t *mutex);

like, she takes one thing and returns nothing. very low maintenance. very demure. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mutex β€” the mutex you wanna destroy. that's the one. the target. say bye bestie 😭

πŸ’œ DESCRIPTION πŸ’œ

she destroys the mutex mutex that was initialized by mCreate(). like, mCreate() made it, mDestroy() un-makes it. the circle of life fr fr 🧚✨

MT-Level: Safe for unique mutex.

bestie pls note the word unique β€” that's doing a lot of work in that sentence. read it twice. 🫢

⭐ RETURN VALUE ⭐

None. nothing. nada. she does her thing and leaves. no receipts, no follow-up text. πŸ’€


🌈 SEE ALSO 🌈

the whole friend group, go say hi:


okay that's the whole page, you ate that πŸ“ and for the cute sign-off: this lil masterpiece is brought to you by ClearSilver, dated 12 July 2007, and no cap it has been serving mutex-destruction realness ever since. mwah πŸ’‹βœ¨