Re: 10.6.3 Open File Dialog preview stalling AUHAL (AudioQueue <->AUHal deadlock ?)
Re: 10.6.3 Open File Dialog preview stalling AUHAL (AudioQueue <->AUHal deadlock ?)
- Subject: Re: 10.6.3 Open File Dialog preview stalling AUHAL (AudioQueue <->AUHal deadlock ?)
- From: "Ross Bencina" <email@hidden>
- Date: Tue, 27 Apr 2010 15:41:57 +1000
Jeff Moore wrote:
This is an application bug.
The spin trace shows that the IOProc is calling AudioDeviceGetProperty().
Yes that's correct.
This call, like every other HAL API call, blocks.
So it cannot be made from your IOProc without things like this happening.
Thanks for clarifying Jeff.
To fix this, your app needs to be caching what it needs
from the HAL prior to the IOProc getting called.
Is there any guarantee of mutual exclusion beteen HAL notification callbacks
and the IOProc? or do I have to implement some kind of lock free buffering
to get make this information available to the callback without blocking.
Thanks!
Ross.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden