Add thread debugging.

This commit is contained in:
dosiecki 2015-04-13 13:18:56 -07:00
parent 744ebd54a9
commit f453abaa69
2 changed files with 3 additions and 0 deletions

View file

@ -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);

View file

@ -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);
} }