Re: [LAD] Let's kill EPAMP???

From: Dmitry Baikov <dsbaikov@email-addr-hidden>
Date: Tue Jun 03 2008 - 18:09:59 EEST

On Tue, Jun 3, 2008 at 5:15 PM, Nedko Arnaudov <nedko@email-addr-hidden> wrote:
> "Stefano D'Angelo" <zanga.mail@email-addr-hidden> 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.

Dmitry.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Tue, 3 Jun 2008 19:09:59 +0400

This archive was generated by hypermail 2.1.8 : Tue Jun 03 2008 - 20:15:02 EEST