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:
Mike Jensen
2013-12-23 14:19:41 -07:00
parent 4570195a9b
commit 8b7f689e1a
11 changed files with 635 additions and 2 deletions

View File

@ -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;