Re: Sound Manager & MIDI callbacks, interrupts and threads
Re: Sound Manager & MIDI callbacks, interrupts and threads
- Subject: Re: Sound Manager & MIDI callbacks, interrupts and threads
- From: Laurent de Segur <email@hidden>
- Date: Tue, 19 Feb 2002 10:26:35 -0800
On Tuesday, February 19, 2002, at 03:04 AM, Andy Robinson wrote:
but is the concept safe? Someone said that it's hard to know whether an
operation is "atomic" - something about single bus transactions.
I am not sure how portable you want you app to be, but as you mentioned
disabling interrupts as your fav workaround, I assume that shouldn't
matter too much to you.
If this is the case, you should take a look at the Darwin Streaming
server, in particular, the section SubProjects/AtomicLib. There, you
will find all the details for implementing an atomic queue.The source is
available only if you are an ADC member. It's quite easy to use. The
atomic operations are written for ppc and this can be adapted to other
architectures. The plumbing is the same.
BTW, this project is ultra cool. Check it out if you didn't do that yet.
LdS
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.