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_contextgets passed as the second argument to the function you handed in as theglobal_lock_methodargument toCK_COHORT_PROTOTYPEβ but only if that method actually gets called. no call, no context. periodt.local_contextgets passed to the function you specified withlocal_lock_methodβ¨
so yeah, both contexts are yours to define, you just gotta remember which one goes where π«Ά
π¦ SEE ALSO π¦
ck_cohort(3)CK_COHORT_PROTOTYPE(3)CK_COHORT_TRYLOCK_PROTOTYPE(3)CK_COHORT_INSTANCE(3)CK_COHORT_INITIALIZER(3)CK_COHORT_INIT(3)CK_COHORT_LOCK(3)CK_COHORT_LOCKED(3)CK_COHORT_TRYLOCK(3)
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
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2013 Brendon Scheinman
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms