[PATCH] libdl: rudimentary locking for dlopen/dlsym/dlclose

Mike Frysinger vapier at gentoo.org
Fri May 4 16:52:12 UTC 2012


On Friday 04 May 2012 06:10:02 HeinBali wrote:
> > This implements big-dlfcn lock to allow multithreaded usage of
> > dlopen/dlsym/dlclose. We should really clean up the dl code so
> > we can use more fine grained locking or even RCU where appropriate.
> 
> Maybe it would be a good idea to check within libdl.c :
> 
> #ifndef PTHREADS_NATIVE
> #error ...
> #endif
> 
> I just spent a long time wondering why all of the ALSA utilities crashed
> right after start-up: Buildroot had selected the standard Linux thread type
> (PTHREADS_OLD)

the locking code is pthread-implementation independent.  there's no reason i 
can see that this would require NPTL.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120504/c106c05d/attachment.asc>


More information about the uClibc mailing list