Skip to content
Snippets Groups Projects
Commit 4d39fa86 authored by Christian Wulf's avatar Christian Wulf
Browse files

added logger to AbstractInterThreadPipe

parent c4bf172e
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,14 @@ import org.jctools.queues.QueueFactory;
import org.jctools.queues.spec.ConcurrentQueueSpec;
import org.jctools.queues.spec.Ordering;
import org.jctools.queues.spec.Preference;
import org.slf4j.LoggerFactory;
import teetime.framework.signal.ISignal;
public abstract class AbstractInterThreadPipe extends AbstractPipe {
private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(AbstractInterThreadPipe.class);
private final Queue<ISignal> signalQueue = QueueFactory.newQueue(new ConcurrentQueueSpec(1, 1, 0, Ordering.FIFO, Preference.THROUGHPUT));
protected <T> AbstractInterThreadPipe(final OutputPort<? extends T> sourcePort, final InputPort<T> targetPort) {
......@@ -24,7 +27,7 @@ public abstract class AbstractInterThreadPipe extends AbstractPipe {
Thread owningThread = cachedTargetStage.getOwningThread();
if (owningThread == null) {
System.err.println("cachedTargetStage: " + cachedTargetStage);
LOGGER.warn("owningThread of " + cachedTargetStage + " is null.");
}
if (null != owningThread && isThreadWaiting(owningThread)) { // FIXME remove the null check for performance
owningThread.interrupt();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment