boost thread & get_nproc

Peter Korsgaard jacmet at sunsite.dk
Mon Jun 21 19:03:21 UTC 2010


>>>>> "Bernhard" == Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> writes:

Hi,

 >> Yes, get_nprocs() is a GNU extension. You can use
 >> sysinfo(_SC_PROCESSORS_CONF); instead like I did for squashfs last week:

 Bernhard> http://www.mail-archive.com/uclibc@uclibc.org/msg05262.html

 Bernhard> As said, feedback on the locking in a threaded environment is welcome
 Bernhard> (ideally with testcases that we can put into the testsuite).

Ok, also see https://bugs.uclibc.org/2089 for other threading issues
(including a test case).

-- 
Bye, Peter Korsgaard


More information about the uClibc mailing list