CK_COHORT_UNLOCK(3)

πŸ’– CK_COHORT_UNLOCK β€” release cohort lock πŸ’–

okay bestie, welcome to the Concurrency Kit corner of the manual, aka libck, and yes you link it with -lck πŸŽ€


✨ SYNOPSIS ✨

#include <ck_cohort.h>

CK_COHORT_UNLOCK(COHORT_NAME cohort_name, COHORT *cohort,
    void *global_context, void *local_context);

🌸 DESCRIPTION 🌸

so like, this call tells cohort to relinquish its local lock, and ngl it might also let go of its global lock too while it's at it. it's giving "bye bestie, maybe, depends" πŸ’…

here's the tea on the two context args tho, because they do NOT go to the same place:

  • global_context gets passed as the second argument to the function you handed in as the global_lock_method argument to CK_COHORT_PROTOTYPE β€” but only if that method actually gets called. no call, no context. periodt.
  • local_context gets passed to the function you specified with local_lock_method ✨

so yeah, both contexts are yours to define, you just gotta remember which one goes where 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

and if you want even more lore, it's all waiting at http://concurrencykit.org/ 🌈


okay that's the whole page bestie, no cap πŸ’€ this one was dated February 24, 2013, and it lives in the manual as CK_COHORT_UNLOCK(3) β€” iconic, historic, lock-releasing legend πŸ‘‘πŸ’–

πŸ“¦ where this page comes from