Merge "WorkQueue: Pipe description of work item through to set thread name"
This commit is contained in:
@@ -606,9 +606,12 @@ public class WorkQueue {
|
||||
@Override
|
||||
public void run() {
|
||||
if (running.compareAndSet(false, true)) {
|
||||
String oldThreadName = Thread.currentThread().getName();
|
||||
try {
|
||||
Thread.currentThread().setName(oldThreadName + "[" + task.toString() + "]");
|
||||
task.run();
|
||||
} finally {
|
||||
Thread.currentThread().setName(oldThreadName);
|
||||
if (isPeriodic()) {
|
||||
running.set(false);
|
||||
} else {
|
||||
@@ -681,5 +684,10 @@ public class WorkQueue {
|
||||
public boolean hasCustomizedPrint() {
|
||||
return runnable.hasCustomizedPrint();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return runnable.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Submodule plugins/reviewnotes updated: 9e7fd9b420...e952b920ec
Reference in New Issue
Block a user