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

gettid from regressions/common.h clashes with glibc 2.30 provided one #147

Closed StefanBruens closed 4 years ago

StefanBruens commented 4 years ago

https://github.com/concurrencykit/ck/blob/f37aa8bed6114035343bf61e277b499855b75b36/regressions/common.h#L269-L275

glibc 2.30 added a wrapper around the syscall: https://lwn.net/Articles/795127/

As the wrapper is a function and not a macro, the "#ifdef gettid" check does not work. The gettid() availability should be checked in configure.

sbahra commented 4 years ago

Fix incoming, thank you @StefanBruens!