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

added Thread.yield() to Relay

parent b73f04e6
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ public class Relay<T> extends AbstractStage<T, T> {
this.logger.debug("got end signal; pipe.size: " + this.getInputPort().getPipe().size());
assert 0 == this.getInputPort().getPipe().size();
}
Thread.yield();
return;
}
this.send(element);
......
......@@ -22,7 +22,9 @@ import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import teetime.util.StatisticsUtil;
import teetime.util.StopWatch;
......@@ -32,6 +34,7 @@ import teetime.util.StopWatch;
*
* @since 1.10
*/
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ChwWorkTcpTraceReconstructionAnalysisWithThreadsTest {
private StopWatch stopWatch;
......
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