concurrencykit / ck

Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.
http://concurrencykit.org/
Other
2.35k stars 312 forks source link

Reduce need for container_of in code using ck_hs #152

Open pkhuong opened 4 years ago

pkhuong commented 4 years ago

Let the ck_hs constructor indicate the offset of the key field in pointees, thus making container_of optional.

michael-grunder commented 2 years ago

This would be a nice quality of life improvement.

Also, that forward compatible options struct is excellent.