skipRelease(3)

✨ skipRelease(3) ✨

okay bestie, so we're in util/skiplist.h territory today β€” this is the skipRelease page and it's giving "let that value GO" energy πŸ’…


🌸 NAME 🌸

skipRelease β€” release lock on value. yeah. that's the whole gig. iconic honestly πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <util/skiplist.h>

void skipRelease(skipList list, void *lock);

πŸ’– ARGUMENTS πŸ’–

  • list β€” the list that's holding the value you wanna release, bestie. it's right there. containing it. 🫢
  • lock β€” the lock to release. yes queen, hand it over. πŸ”“

✨ DESCRIPTION ✨

So here's the tea β˜• β€” skipRelease() releases the lock on the value that's associated with <lock>. That's it. That's the whole vibe.

And the moment the lock is released? the freeValue callback can be called and the item gets freed (go peek at skipNewList() for that whole situation, iykyk πŸ‘€).

MT-Level: Safe if <list> is thread-safe. no cap β€” if your list isn't thread-safe, don't come crying to me, protect yourself first 🧚


πŸ’€ RETURN VALUE πŸ’€

None. literally nothing. it returns void. it said "not me giving you a return value" πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘


ClearSilver Β· 12 July 2007 β€” yeah this page is an elder but it still ate fr fr, mwah, go release those locks bestie πŸ’œπŸŒΈπŸ¦‹