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

HeinBali hein_tibosch at yahoo.es
Fri May 4 10:10:02 UTC 2012


Hi Timo,


> 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)

Hein
-- 
View this message in context: http://old.nabble.com/-PATCH--libdl%3A-rudimentary-locking-for-dlopen-dlsym-dlclose-tp31228028p33763457.html
Sent from the uClibc mailing list archive at Nabble.com.



More information about the uClibc mailing list