Help to add to mail loop

Thanks
Jello Huang

On 18 July 2012 17:41, 杨子龙 <[email protected]> wrote:

> Hi folks:
>     When I develop on our (ics-4.0.4 )phone, There may block when Voice
> call incoming.
> I debuged and find that it block at:
> status_t AudioPolicyService::AudioCommandThread::volumeCommand(int
> stream,float volume,int output,int delayMs)
> {
>     ......
>     if (command->mWaitStatus) {
>         ------here is blocked
>         command->mCond.wait(mLock);
>         status =  command->mStatus;
>         mWaitWorkCV.signal();
>     }
>     ......
> }
> I debuged that while at this bolck line (named this thread as A), another
> thread B is enterint this function(because mLock was already freed by
> mCond.wait(mLock) here), and then Thread B will get control of CPU, and
> communicate with thread AudioCommandThread::threadLoop. and the Thread A
> will block here forever. So, I think there may exist some unsynchronously
> code.but not sure. So I want to ask for help from your rich experisence
> team. Thanks a lot.
>
> BR
> yzl
>
>
>


-- 
Thanks
Jello Huang

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to