Merge "Lower the priority of the LazyTaskWriter thread." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
149cae2f86
@@ -33,6 +33,7 @@ import android.util.AtomicFile;
|
|||||||
import android.util.Slog;
|
import android.util.Slog;
|
||||||
import android.util.SparseArray;
|
import android.util.SparseArray;
|
||||||
import android.util.Xml;
|
import android.util.Xml;
|
||||||
|
import android.os.Process;
|
||||||
|
|
||||||
import com.android.internal.util.FastXmlSerializer;
|
import com.android.internal.util.FastXmlSerializer;
|
||||||
import com.android.internal.util.XmlUtils;
|
import com.android.internal.util.XmlUtils;
|
||||||
@@ -471,6 +472,7 @@ public class TaskPersister {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
|
||||||
ArraySet<Integer> persistentTaskIds = new ArraySet<Integer>();
|
ArraySet<Integer> persistentTaskIds = new ArraySet<Integer>();
|
||||||
while (true) {
|
while (true) {
|
||||||
// We can't lock mService while holding TaskPersister.this, but we don't want to
|
// We can't lock mService while holding TaskPersister.this, but we don't want to
|
||||||
|
|||||||
Reference in New Issue
Block a user