
"Oliver Kowalke" <k-oli@gmx.de> writes:
boost::thread::hardware_concurrency() seams not to work on all platforms (xBSD, OpenSolaris). Is there some ongoing work to provide this functionaly on the other platforms too?
If you know how to detect the number of processors/cores/hardware threads on a platform for which hardware_concurrency() currently returns the wrong number (likely 0), let me know and I'll update the code. It currently works for Windows, Linux, HPUX, MacOS, FreeBSD, and any POSIX OS that supports _SC_NPROCESSORS_ONLN with sysconf. Anthony -- Anthony Williams Author of C++ Concurrency in Action | http://www.manning.com/williams Custom Software Development | http://www.justsoftwaresolutions.co.uk Just Software Solutions Ltd, Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK