This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread weak symbols


On 09 Dec 2015 15:20, Matt Turner wrote:
> I'm interested in avoiding pthread/locking overhead in Mesa
> (http://mesa3d.org/) when the application is not using threads.
> 
> I've read about glibc's weak pthread symbols that are intended to
> solve this problem, but I've also read on this list that they weren't
> a good idea and have some (unknown to me) problems.
> 
> Can I get some clarification about what problems there are with the
> weak pthread symbols, and perhaps some suggested alternative
> solutions?

we don't provide weak symbols for all funcs, so you're a bit limited
in which ones you can use.  run `readelf -s` on libc.so to see which
ones are available.
-mike

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]