HCOLL-216 added a fix to the TcpReplicator to stop OP_WRITE from spinning when working with the stateless client - also introduced the Netty like code for patching the

nio selector to reduce object creation.
This commit is contained in:
Rob Austin
2014-11-25 20:45:43 +00:00
parent 21b0d96493
commit b747788152
5 changed files with 302 additions and 55 deletions
@@ -19,7 +19,6 @@
package net.openhft.chronicle.map;
import net.openhft.lang.values.IntValue;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -147,11 +146,12 @@ public class TCPSocketReplication4WayMapTest {
private void waitTillEqual(final int timeOutMs) throws InterruptedException {
int t = 0;
for (; t < timeOutMs; t++) {
if (map1.equals(map2) &&
map1.equals(map3) &&
map2.equals(map3) &&
map4.equals(map3) &&
map1.equals(map4))
if ( map1.equals(map2) &&
map1.equals(map3) &&
map1.equals(map4) &&
map2.equals(map3) &&
map2.equals(map4) &&
map3.equals(map4))
break;
Thread.sleep(1);
}