2 Commits

Author SHA1 Message Date
aokblast a51e54b4fd Fix CMake detection on pthread_affinity test on FreeBSD (#2146)
* Fix cmake detection on pthread_affinity test on FreeBSD

In FreeBSD, non posix thread functions locate in the pthread_np.h. We
check the platform and include the correct header.
Also, pthread related features in some platforms require link to special
library. We append Threads target to BENCHMARK_CXX_LIBRARIES so that it
can be added by cxx_feature_check.

* fixup! Fix cmake detection on pthread_affinity test on FreeBSD

---------

Co-authored-by: Roman Lebedev <lebedev.ri@gmail.com>
2026-03-11 21:50:21 +03:00
Yingwei Zheng 3b19d7222d Fix CPU frequency estimation on riscv (#1549)
* Fix CPU frequency estimation on riscv

* Cleanup code for CPU frequency estimation

* Fix use before definition of the macro

* Move the platform definitions back

* Fix compilation error on windows

* Remove unused sleep.h and sleep.cc
2023-02-21 11:30:28 +00:00