Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pthread_setaffinity_np() on FreeBSD as well
libs/fiber/src/numa/freebsd/pin_thread.cpp:13:10: fatal error: 'sys/thread.h' file not found #include <sys/thread.h> ^~~~~~~~~~~~~~ libs/fiber/src/numa/freebsd/pin_thread.cpp:28:35: error: too few arguments to function call, single argument 'id' was not specified pin_thread( cpuid, ::thr_self() ); ~~~~~~~~~~ ^ /usr/include/sys/thr.h:77:1: note: 'thr_self' declared here int thr_self(long *id); ^ libs/fiber/src/numa/freebsd/pin_thread.cpp:36:85: error: cannot initialize a parameter of type 'id_t' (aka 'long') with an lvalue of type 'std::thread::native_handle_type' (aka 'pthread *') if ( BOOST_UNLIKELY( 0 != ::cpuset_setaffinity( CPU_LEVEL_WHICH, CPU_WHICH_TID, h, sizeof( mask), & mask) ) ) { ^ ./boost/config/compiler/clang.hpp:67:44: note: expanded from macro 'BOOST_UNLIKELY' #define BOOST_UNLIKELY(x) __builtin_expect(x, 0) ^ /usr/include/sys/cpuset.h:156:52: note: passing argument to parameter here int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *); ^
- Loading branch information