Loading media/libaudioclient/AudioTrack.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -1414,6 +1414,9 @@ status_t AudioTrack::createTrack_l() pid_t tid = -1; if (mFlags & AUDIO_OUTPUT_FLAG_FAST) { // It is currently meaningless to request SCHED_FIFO for a Java thread. Even if the // application-level code follows all non-blocking design rules, the language runtime // doesn't also follow those rules, so the thread will not benefit overall. if (mAudioTrackThread != 0 && !mThreadCanCallJava) { tid = mAudioTrackThread->getTid(); } Loading Loading @@ -2948,6 +2951,7 @@ bool AudioTrack::AudioTrackThread::threadLoop() mPausedInt = false; } if (mPausedInt) { // TODO use futex instead of condition, for event flag "or" if (mPausedNs > 0) { (void) mMyCond.waitRelative(mMyLock, mPausedNs); } else { Loading Loading
media/libaudioclient/AudioTrack.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -1414,6 +1414,9 @@ status_t AudioTrack::createTrack_l() pid_t tid = -1; if (mFlags & AUDIO_OUTPUT_FLAG_FAST) { // It is currently meaningless to request SCHED_FIFO for a Java thread. Even if the // application-level code follows all non-blocking design rules, the language runtime // doesn't also follow those rules, so the thread will not benefit overall. if (mAudioTrackThread != 0 && !mThreadCanCallJava) { tid = mAudioTrackThread->getTid(); } Loading Loading @@ -2948,6 +2951,7 @@ bool AudioTrack::AudioTrackThread::threadLoop() mPausedInt = false; } if (mPausedInt) { // TODO use futex instead of condition, for event flag "or" if (mPausedNs > 0) { (void) mMyCond.waitRelative(mMyLock, mPausedNs); } else { Loading