concurrentify shitlist

This commit is contained in:
zzz
2009-02-03 15:15:09 +00:00
parent d236b9b44a
commit ececf5407d
2 changed files with 57 additions and 74 deletions

View File

@ -50,4 +50,11 @@ public class ConcurrentHashSet<E> extends AbstractSet<E> implements Set<E> {
public Iterator<E> iterator() {
return _map.keySet().iterator();
}
public boolean addAll(Collection<? extends E> c) {
boolean rv = false;
for (E e : c)
rv |= _map.put(e, DUMMY) == null;
return rv;
}
}