mirror of https://github.com/apache/activemq.git
fix bad logger
This commit is contained in:
parent
232b8c51e9
commit
914beaeb4c
|
@ -41,6 +41,7 @@ class PooledTaskRunner implements TaskRunner {
|
|||
this.maxIterationsPerRun = maxIterationsPerRun;
|
||||
this.task = task;
|
||||
runable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
runningThread = Thread.currentThread();
|
||||
try {
|
||||
|
@ -56,6 +57,7 @@ class PooledTaskRunner implements TaskRunner {
|
|||
/**
|
||||
* We Expect MANY wakeup calls on the same TaskRunner.
|
||||
*/
|
||||
@Override
|
||||
public void wakeup() throws InterruptedException {
|
||||
synchronized (runable) {
|
||||
|
||||
|
@ -88,8 +90,9 @@ class PooledTaskRunner implements TaskRunner {
|
|||
*
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
@Override
|
||||
public void shutdown(long timeout) throws InterruptedException {
|
||||
LOG.trace("Shutdown timeout: {} task: {}", task);
|
||||
LOG.trace("Shutdown timeout: {} task: {}", timeout, task);
|
||||
synchronized (runable) {
|
||||
shutdown = true;
|
||||
// the check on the thread is done
|
||||
|
@ -104,6 +107,7 @@ class PooledTaskRunner implements TaskRunner {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shutdown() throws InterruptedException {
|
||||
shutdown(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue