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.
This commit is contained in:
Patrick Scott
2009-07-20 08:55:06 -04:00
parent 41944da6ef
commit 4a06b68c82

View File

@@ -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,