CK_ARRAY_LENGTH(3)
β¨ CK_ARRAY_LENGTH(3) β¨
okay bestie, welcome to ck_array_length, a lil function from Concurrency Kit (that's libck, link it with -lck π
). it's short, it's sweet, and it's literally just here to count things for you. no cap.
π LIBRARY π
Concurrency Kit β aka libck, and you link it with -lck. that's the whole vibe.
πΈ SYNOPSIS πΈ
#include <ck_array.h>
unsigned int
ck_array_length(ck_array_t *array);
like. that's it. one include, one function, one pointer argument. iconic behavior honestly π«Ά
π DESCRIPTION π
so ck_array_length(3) hands you back the number of items a concurrent traversal operation would encounter at completion time.
read that again, because the wording is doing WORK. it's not "how many things are in the array right now while other threads are out here living their lives" β it's how many pointers a traversal would see once that traversal finishes. concurrent code is messy, timelines are fake, and this function knows it. periodt. β¨
π RETURN VALUES π
it returns the number of traversal-visible pointers. that's the return value, that's the whole thing, go forth and count π¦
π₯ SEE ALSO π₯
the whole squad, fr fr:
ck_array_commit(3)ck_array_put(3)ck_array_put_unique(3)ck_array_remove(3)ck_array_init(3)ck_array_deinit(3)ck_array_buffer(3)ck_array_initialized(3)CK_ARRAY_FOREACH(3)
and if you want even more lore, it's all over at http://concurrencykit.org/ π
ngl bestie, if you're deep in concurrent data structure land, this one's your girl. go read the rest of the array crew, they all hang out together πβ¨
that's a wrap! this page is from October 18, 2013 (a vintage, an era, a moment π) β brought to you by Concurrency Kit and the fine folks behind libck. mwah, bye! π
ππΈ
π¦ 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 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms