Re: [LAD] Inter thread Communication: Design Approach

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Harry van Haaren <harryhaaren@...>, <linux-audio-dev@...>
Date: Friday, September 2, 2011 - 8:36 am

On 09/01/2011 10:37 PM, Harry van Haaren wrote:

Hmm, i used Functors and Closures in jass for passing commands to the
realtime thread and wrote a small article about it.

http://178.63.2.231/~tapas/wordpress/?page_id=45

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. See e.g.

https://github.com/fps/jass/blob/master/engine.h

and

https://github.com/fps/jass/blob/master/main_window.h

I agree that this method doesn't necessarily scale to other kind of
applications and it also might be a bit more error prone than a well
thought out event system using types that cover all bases, it does make
for a quite good solution for an app of the scope of jass..

Have fun,
Flo

> -Harry

Taking a look..

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Inter thread Communication: Design Approach, Harry van Haaren, (Sat Aug 20, 2:19 pm)
Re: [LAD] Inter thread Communication: Design Approach, Gabriel Beddingfield, (Sat Aug 20, 3:04 pm)
Re: [LAD] Inter thread Communication: Design Approach, David Robillard, (Thu Sep 1, 6:18 pm)
Re: [LAD] Inter thread Communication: Design Approach, Gabriel Beddingfield, (Fri Sep 2, 2:29 am)
Re: [LAD] Inter thread Communication: Design Approach, David Robillard, (Fri Sep 2, 3:22 pm)
Re: [LAD] Inter thread Communication: Design Approach, Gabriel Beddingfield, (Fri Sep 2, 4:03 pm)
Re: [LAD] Inter thread Communication: Design Approach, David Robillard, (Fri Sep 2, 4:29 pm)
Re: [LAD] Inter thread Communication: Design Approach, Harry van Haaren, (Thu Sep 1, 8:37 pm)
Re: [LAD] Inter thread Communication: Design Approach, Florian Paul Schmidt, (Fri Sep 2, 8:36 am)
Re: [LAD] Inter thread Communication: Design Approach, David Robillard, (Fri Sep 2, 3:13 pm)
Re: [LAD] Inter thread Communication: Design Approach, Florian Paul Schmidt, (Fri Sep 2, 5:29 pm)
Re: [LAD] Inter thread Communication: Design Approach, Harry van Haaren, (Fri Sep 2, 11:59 am)
Re: [LAD] Inter thread Communication: Design Approach, Fons Adriaensen, (Thu Sep 1, 6:37 pm)
Re: [LAD] Inter thread Communication: Design Approach, David Robillard, (Thu Sep 1, 8:30 pm)
Re: [LAD] Inter thread Communication: Design Approach, Fons Adriaensen, (Fri Sep 2, 10:04 am)
Re: [LAD] Inter thread Communication: Design Approach, Fons Adriaensen, (Sat Sep 3, 9:25 pm)
Re: [LAD] Inter thread Communication: Design Approach, Florian Paul Schmidt, (Sun Sep 4, 10:22 am)
Re: [LAD] Inter thread Communication: Design Approach, Florian Paul Schmidt, (Fri Sep 2, 10:50 am)
Re: [LAD] Inter thread Communication: Design Approach, David Robillard, (Thu Sep 1, 8:34 pm)
Re: [LAD] Inter thread Communication: Design Approach, Harry van Haaren, (Sat Aug 20, 4:17 pm)
Re: [LAD] Inter thread Communication: Design Approach, Arnold Krille, (Sat Aug 20, 3:57 pm)