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

added Thread.yield() to Relay

parent 9ee8700f
Branches
Tags
No related merge requests found
...@@ -18,6 +18,7 @@ public class Relay<T> extends AbstractStage<T, T> { ...@@ -18,6 +18,7 @@ public class Relay<T> extends AbstractStage<T, T> {
this.logger.debug("got end signal; pipe.size: " + this.getInputPort().getPipe().size()); this.logger.debug("got end signal; pipe.size: " + this.getInputPort().getPipe().size());
assert 0 == this.getInputPort().getPipe().size(); assert 0 == this.getInputPort().getPipe().size();
} }
Thread.yield();
return; return;
} }
this.send(element); this.send(element);
......
...@@ -22,7 +22,9 @@ import java.util.concurrent.TimeUnit; ...@@ -22,7 +22,9 @@ import java.util.concurrent.TimeUnit;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test; import org.junit.Test;
import org.junit.runners.MethodSorters;
import teetime.util.StatisticsUtil; import teetime.util.StatisticsUtil;
import teetime.util.StopWatch; import teetime.util.StopWatch;
...@@ -32,6 +34,7 @@ import teetime.util.StopWatch; ...@@ -32,6 +34,7 @@ import teetime.util.StopWatch;
* *
* @since 1.10 * @since 1.10
*/ */
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ChwWorkTcpTraceReconstructionAnalysisWithThreadsTest { public class ChwWorkTcpTraceReconstructionAnalysisWithThreadsTest {
private StopWatch stopWatch; private StopWatch stopWatch;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment