Multithreading problems

Rich Felker dalias at aerifal.cx
Thu Aug 17 15:54:24 UTC 2006


On Sat, Aug 05, 2006 at 12:16:10PM -0700, John Clark wrote:
> When I see verbage like this, and given the complexity of call paths 
> through the libraries, even though uClibc is 'simpler' by some measure 
> than glibc,
> I get worried, and become very explicit about declaring my intention to 
> use pthreaded versions of every thing.

This intention is declared at _link_ time, not compile time, and
depends on which libraries are linked, not which headers are included.
If it were the latter, threaded programs would crash as soon as you
linked a normal, non-threads-aware library to them.

Rich




More information about the uClibc mailing list