$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Query on Boost.DLL
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2016-02-21 05:59:59
On 21 February 2016 at 00:48, Leo Carreon <lcarreon_at_[hidden]> wrote:
> Hi,
>
> I have been reading the Boost.DLL documentation.
>
> Can a single plugin support multiple APIâs?
> If yes, when the multiple APIâs are used at the same time; will there be
> only one instance of the plugin loaded or will there be multiple instances
> loaded?
>
I might have misunderstood your question, but I believe that you ca have
anyhting as API of your plugin
and have as many plugin instances as you want.
"plugin" in the library is only a common example of how we use dynamically
loaded shared libraries.
Basically, as long as you have a way to instantiate or acquire a plugin
implementation (for example with a factory function),
it will be managed through a shared_ptr (as the documentation shows).
>
> Regards,
> Leo
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://listarchives.boost.org/mailman/listinfo.cgi/boost-users
>