Re: [LAD] Inter thread Communication: Design Approach

From: David Robillard <d@email-addr-hidden>
Date: Fri Sep 02 2011 - 18:13:03 EEST

On Fri, 2011-09-02 at 10:36 +0200, Florian Paul Schmidt wrote:
> On 09/01/2011 10:37 PM, Harry van Haaren wrote:
[...]
> Coupled with a poor man's garbage collection scheme using
> boost::shared_ptr's this was a quite quick way to hack up jass. There's
> no need to introduce new types if you want to do something new. Actually
> there's only exactly one type that gets passed through the command
> ringbuffer and that is boost::function<void(void)>. See e.g.

Careful doing this, note that dropping the last shared_ptr to an object
is NOT real-time (it calls delete), even if destroying the actual object
is.

-dr

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Sep 2 20:15:02 2011

This archive was generated by hypermail 2.1.8 : Fri Sep 02 2011 - 20:15:02 EEST