Re: implementation of std::thread::hardware_concurrency()

2011-11-09 Thread niXman
Hi Jonathan. I test your patch on OpenBSD-5.0 and mingw. Everywhere works correctly. Regards, niXman.

Re: implementation of std::thread::hardware_concurrency()

2011-11-01 Thread Jonathan Wakely
I've put gcc-patches@ back in the CC list and removed gcc@ On 1 November 2011 15:35, niXman wrote: >> Er, the macro _GLIBCXX_NPROCS already handles >> the case sysconf(_SC_NPROCESSORS_ONLN). >> It looks like you actually want to remove the macro >> _GLIBCXX_NPROCS completely. > > Fixed. No, this

Re: implementation of std::thread::hardware_concurrency()

2011-11-01 Thread niXman
> Er, the macro _GLIBCXX_NPROCS already handles > the case sysconf(_SC_NPROCESSORS_ONLN). > It looks like you actually want to remove the macro > _GLIBCXX_NPROCS completely. Fixed. diff --git a/libstdc++-v3/src/thread.cc b/libstdc++-v3/src/thread.cc index 09e7fc5..6feda4d 100644 --- a/libstdc++-v