OrderBook View is threadsafe now

This commit is contained in:
7u83
2016-12-28 15:20:58 +01:00
parent 806a74014d
commit ce24a82442
6 changed files with 75 additions and 33 deletions

View File

@ -84,7 +84,15 @@ public class Exchange extends Thread {
while (i.hasNext()) {
i.next().UpdateOrderBook();
}
/* try {
sleep(50);
} catch (InterruptedException e) {
System.out.println("I was Interrupted");
}
*/
}
// Here we store the list of quote receivers
private final TreeSet<QuoteReceiver> qrlist;