public void unregisterAllPhasers(Activity owner) {
lock.lock();
try {
Iterator<phaser> iter= phasers.iterator();
while (iter.hasNext()) {
phaser ph = iter.next();
ph.unregisterSignaler(owner);
ph.unregisterWaiter(owner);
}
} finally {
lock.unlock();
}
}