Re: threading questions
Re: threading questions
- Subject: Re: threading questions
- From: Doug Wyatt <email@hidden>
- Date: Fri, 14 Nov 2003 14:27:03 -0800
I'd just add that on a dual CPU, the probability of multiple callbacks
into your code running simultaneously is much greater than on a
single-processor machine...
Doug
On Nov 10, 2003, at 12:33, Jeff Moore wrote:
Unless one were to configure kAudioHardwarePropertyRunLoop in a very
odd way, it isn't likely that another thread would interrupt your
IOProc to deliver notifications, but if you were to call back into the
HAL to change some state of the device from inside your IOProc, there
is every likelihood that your listener procs will get called while
your IOProc is executing.
For that matter, can one IOProc interrupt another IOProc?
For most drivers, there is only one thread per device per process. So,
multiple IOProcs on the same device will not interrupt each other. But
if each IOProc is attached to a different device, then it is possible
for the threads to interrupt each other if your IOProc takes long
enough to execute.
_______________________________________________
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.