Just cross-posting this from the PA mailing list. Ross has written another
great article on concurrency, lock-free algorithms, message passing and
more.

You'll find more than a few of these patterns manifested in Mixxx. I think
it would be useful if we spent some time creating some building blocks
based on these patterns. Every instance of these within Mixxx is currently
a one-off except for our ring-buffer (which we store from PortAudio anyway
;).

---------- Forwarded message ----------
From: Ross Bencina <ro...@audiomulch.com>
Date: Mon, Dec 17, 2012 at 5:08 AM
Subject: [Portaudio] Programming with lightweight asynchronous messages:
some basic patterns
To: Portaudio Mailing List <portau...@music.columbia.edu>


Hi Everyone,

The subject of using message queues to communicate with the PortAudio
callback comes up here from time to time.

I just wrote a new blog post trying to capture some of the high level
mechansisms that might be used in this scenario [warning: it's not short,
but it has pictures :) ]

http://www.rossbencina.com/**code/programming-with-**
lightweight-asynchronous-**messages-some-basic-patterns<http://www.rossbencina.com/code/programming-with-lightweight-asynchronous-messages-some-basic-patterns>

It's rather general and abstract but I hope it helps someone.

I'd love to hear some feedback if anyone has any thoughts about this
material.

Thanks,

Ross
______________________________**_________________
Portaudio mailing list
portau...@music.columbia.edu
http://music.columbia.edu/**mailman/listinfo/portaudio<http://music.columbia.edu/mailman/listinfo/portaudio>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to