[LAD] Let's kill EPAMP???

Stefano D'Angelo zanga.mail at gmail.com
Tue Jun 3 16:56:54 UTC 2008


2008/6/3 Dmitry Baikov <dsbaikov at gmail.com>:
> On Tue, Jun 3, 2008 at 5:15 PM, Nedko Arnaudov <nedko at arnaudov.name> wrote:
>> "Stefano D'Angelo" <zanga.mail at gmail.com> writes:
>>>>>>> #7. Global explicit initialization/finalization functions for more
>>>>>>> exotic platforms (they wouldn't harm, so why not having them).
>>>>>>
>> You need absatraction for defining global constructor/destructor in
>> shared library. As Larsl already said, you can use some C++ tricks (like
>> constructor of global object), for this. In my vision, such thing is
>> bound to creation of shared library file, this is why I mentioned
>> libtool.
>
> From my (big enough) experience, 'automagic' initialization of modules
> (and non-trivial variables) in addition to being not very portable
> is a REALLY BAD THING.
> And I would suggest using explicit calls wherever possible.

Could you please elaborate on that? What kind of problems can arise?

Stefano



More information about the Linux-audio-dev mailing list