diff options
author | Patrick Scott <phanna@android.com> | 2009-07-20 08:55:06 -0400 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2009-07-20 08:55:06 -0400 |
commit | 4a06b68c82fc011d8cd780ed7f0393d1d0617a07 (patch) | |
tree | 8ccc5a5b394fb1aa0ab137df61322339f27a2d0d /core | |
parent | 41944da6efb339b718bd2f518cfcd1732e8c2dcc (diff) | |
download | frameworks_base-4a06b68c82fc011d8cd780ed7f0393d1d0617a07.zip frameworks_base-4a06b68c82fc011d8cd780ed7f0393d1d0617a07.tar.gz frameworks_base-4a06b68c82fc011d8cd780ed7f0393d1d0617a07.tar.bz2 |
Correctly set the thread priority for ConnectionThreads.
This does not change the actual thread priority but if the default priority
changes, this will have the desired result of being slightly less favorable.
I tried messing with the priorities to see if a higher or lower priority helped
but it seemed to do more harm than good. It might be worth more investigation to
find out where all the thread time is being spent so we can determine the
correct priority.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/net/http/ConnectionThread.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/net/http/ConnectionThread.java b/core/java/android/net/http/ConnectionThread.java index 1d0db2b..0b30e58 100644 --- a/core/java/android/net/http/ConnectionThread.java +++ b/core/java/android/net/http/ConnectionThread.java @@ -69,6 +69,7 @@ class ConnectionThread extends Thread { */ public void run() { android.os.Process.setThreadPriority( + android.os.Process.THREAD_PRIORITY_DEFAULT + android.os.Process.THREAD_PRIORITY_LESS_FAVORABLE); // these are used to get performance data. When it is not in the timing, |