mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
Add thread debugging.
This commit is contained in:
parent
744ebd54a9
commit
f453abaa69
2 changed files with 3 additions and 0 deletions
|
@ -207,6 +207,8 @@ public class NBSyncService extends Service {
|
||||||
Process.setThreadPriority(Process.THREAD_PRIORITY_DEFAULT + Process.THREAD_PRIORITY_LESS_FAVORABLE);
|
Process.setThreadPriority(Process.THREAD_PRIORITY_DEFAULT + Process.THREAD_PRIORITY_LESS_FAVORABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Thread.currentThread().setName(this.getClass().getName());
|
||||||
|
|
||||||
if (OfflineNow) {
|
if (OfflineNow) {
|
||||||
OfflineNow = false;
|
OfflineNow = false;
|
||||||
NbActivity.updateAllActivities(false);
|
NbActivity.updateAllActivities(false);
|
||||||
|
|
|
@ -42,6 +42,7 @@ public abstract class SubService {
|
||||||
} else {
|
} else {
|
||||||
Process.setThreadPriority(Process.THREAD_PRIORITY_DEFAULT + Process.THREAD_PRIORITY_LESS_FAVORABLE + Process.THREAD_PRIORITY_LESS_FAVORABLE );
|
Process.setThreadPriority(Process.THREAD_PRIORITY_DEFAULT + Process.THREAD_PRIORITY_LESS_FAVORABLE + Process.THREAD_PRIORITY_LESS_FAVORABLE );
|
||||||
}
|
}
|
||||||
|
Thread.currentThread().setName(this.getClass().getName());
|
||||||
exec_();
|
exec_();
|
||||||
parent.decrementRunningChild(startId);
|
parent.decrementRunningChild(startId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue