Merge "Correctly set thread group to UiThread's thread." into oc-dev

This commit is contained in:
Makoto Onuki
2017-03-28 22:19:01 +00:00
committed by Android (Google) Code Review

View File

@@ -33,8 +33,13 @@ public final class UiThread extends ServiceThread {
private UiThread() {
super("android.ui", Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/);
}
@Override
public void run() {
// Make sure UiThread is in the fg stune boost group
Process.setThreadGroup(Process.myTid(), Process.THREAD_GROUP_TOP_APP);
super.run();
}
private static void ensureThreadLocked() {