pthread_{get,set}name_np() are nonstandard GNU extensions which are
included only when _GNU_SOURCE is defined under GLIBC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
source/Host/linux/HostThreadLinux.cpp | ||
---|---|---|
44 ↗ | (On Diff #35248) | While the pthread functions is a glibc extension, the presence of the comm file under /proc definitely does not depend on the C library used. This does not need to be ifdef-ed out. If you're feeling adventurous, you could reimplement SetName to write to this file and have this functionality regardless of the shared library. If not then ifdef-out the first part only. |