msgs.notify();
msgs.notifyAll();
    public void reset() {	Entry entry;	if (waiting) return;	synchronized(msgs) {	    for (Enumeration e = msgs.elements(); e.hasMoreElements();) {		entry = (Entry)e.nextElement();		entry.cancel();	    }	    msgs.clear();	    msgs.notify();	}    }