mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
Added the easy to add interfaces and implementations for java.util.concurrent to pave the way for future expansion of avians java.util.concurrent classpath implementation.
This commit is contained in:
@ -22,7 +22,7 @@ public class ConcurrentLinkedQueue<T> {
|
||||
}
|
||||
}
|
||||
|
||||
private volatile Node<T> head = new Node(null, null);
|
||||
private volatile Node<T> head = new Node<T>(null, null);
|
||||
private volatile Node<T> tail = head;
|
||||
|
||||
public void clear() {
|
||||
@ -31,7 +31,7 @@ public class ConcurrentLinkedQueue<T> {
|
||||
}
|
||||
|
||||
public boolean add(T value) {
|
||||
Node<T> n = new Node(value, null);
|
||||
Node<T> n = new Node<T>(value, null);
|
||||
while (true) {
|
||||
Node<T> t = tail;
|
||||
Node<T> next = tail.next;
|
||||
|
Reference in New Issue
Block a user