implementation of std::thread::hardware_concurrency()

niXman i.nixman@gmail.com
Tue Nov 1 15:57:00 GMT 2011


> What header is required for pthread_num_processors_np?
pthread.h

> Also, you should include <sys/sysctl.h> before calling sysctlbyname.
On the right - yes.
sysctlbyname() implicitly included in some header files.



More information about the Libstdc++ mailing list