tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libdrm-2.4.11 and xf86-video-intel-2.7.x on DragonFly (mightaffectothers as well) said:
> If a main program dlopen just known plugins and all of them not using
> threads, it can control with DLOPEN_REQUIRE_PTHREADS=no. 

OK, I missed that there is a knob to switch that off.

> But there is a possibility to dlopen unknonw (3rd party?) plugins, it cannot 
> control.

I still don't like the complexity brought in by linking use of dlopen
and thread use. I think the common case is that potential plugins
are known to the main program. See eg all the use of dlopen in the
base system, for i18n, PAM and nss - this all doesn't imply any
thread use.
If, in the (imho) less common case, a program needs to load
unknown shared libraries, I'd say a positive option (in case
it isn't multithreaded anyway) is easier to understand and
maintain than a compination of an implicite assumption and
a negative option.

best regards

Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt

Home | Main Index | Thread Index | Old Index