[LAD] Inter thread Communication: Design Approach

David Robillard d at drobilla.net
Fri Sep 2 15:13:03 UTC 2011


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





More information about the Linux-audio-dev mailing list