Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39e876ad authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "When filling the cache, we always time out waiting for a condition that...

Merge "When filling the cache, we always time out waiting for a condition that won't occur. We are actually improving the power consumption for streaming applications like Pandora." into froyo
parents 3242cc27 1c8bc7bb
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -148,8 +148,10 @@ void Prefetcher::threadFunc() {
            if (mDone) {
            if (mDone) {
                break;
                break;
            }
            }

            mCondition.waitRelative(
            mCondition.waitRelative(
                    mLock, fillingCache ? 10000000ll : 1000000000ll);
                    mLock, fillingCache ? 1ll : 1000000000ll);



            ssize_t minIndex = -1;
            ssize_t minIndex = -1;
            for (size_t i = 0; i < mSources.size(); ++i) {
            for (size_t i = 0; i < mSources.size(); ++i) {