Re: [LAD] A question to plugin host devs

From: Hermann Meyer <brummer-@web.de>
Date: Sun Dec 20 2020 - 19:19:31 EET

Am 20.12.20 um 17:59 schrieb Fons Adriaensen:
> Hello all,
>
> I wonder what are the pros and cons of using RTLD_NODELETE as
> a flag to dlopen() and call dlclose () as soon as the required
> symbols are loaded.
>
> The alternative is to leave all shared object handles open until
> the host terminates.
>
> What are you doing in your plugin host (and why) ?
>
> TIA,
>

In guitarix we use RTLD_LOCAL|RTLD_NOW and we only call dlclose () when
the plug isn't compatible with our host, or when the host shut down.

RTLD_NODELETE may have a benefit when you load/unload/load/unload/ . .
.  a plugin library,
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Dec 21 04:15:02 2020

This archive was generated by hypermail 2.1.8 : Mon Dec 21 2020 - 04:15:02 EET