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.34k stars 312 forks source link

ck_ring.h will fail g++ 9.3.0 with c++17. ck_spinlock.h will conflicts Qt's slots. ck_spinlock.h add cast of pointer. #183

Closed wuhanck closed 2 years ago

wuhanck commented 2 years ago

error message: /usr/local/include/ck_ring.h:285:12: error: cannot convert ‘bool’ to ‘void*’ in return 285 | return false;

It is safe to return zero as bool(false) or pointer(null).

sbahra commented 2 years ago

CK targets C99+ unfortunately. I recommend keeping this in a fork.