On Mon, Jun 21, 2010 at 05:14:42PM +0200, Peter Korsgaard wrote:
>>>>>> "Gerhard" == Lipp, Gerhard <[email protected]> writes:
>
>Hi,
>
> Gerhard> i am trying to get the boost.thread 1.43 lib running, using buildroot
> Gerhard> with uclibc 0.9.31 configured.
> Gerhard> when building bjam from within buildroot env, the compiler complains
> Gerhard> about an undeclared get_nprocs function, which is ifdefed by 
> _GNU_SOURCE
> Gerhard> (file: boost/libs/thread/src/pthread/thread.cpp, method
> Gerhard> boost::thread::hardware_concurrency).
> Gerhard> afaik,  get_nprocs is not part of the libc standard and thus not
> Gerhard> implemented in uclibc up to now. apparently one could implement
> Gerhard> boost::thread::hardware_concurrency with means of sysinfo, but it 
> seems
> Gerhard> this isnt implemented either.
>
>Yes, get_nprocs() is a GNU extension. You can use
>sysinfo(_SC_PROCESSORS_CONF); instead like I did for squashfs last week:

http://www.mail-archive.com/[email protected]/msg05262.html

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

TIA,
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to