mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
NotifyAll
This commit is contained in:
parent
f37c823aa8
commit
c783614cba
3 changed files with 9 additions and 9 deletions
|
|
@ -24,7 +24,7 @@ public class DelayedViewerThread extends Thread {
|
|||
|
||||
public synchronized void show(Component component, long delay) {
|
||||
delayedViewers.put(component, System.currentTimeMillis() + delay);
|
||||
notify();
|
||||
notifyAll();
|
||||
}
|
||||
|
||||
public synchronized void hide(Component component) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class StartMultiGamesTest {
|
|||
synchronized (sync) {
|
||||
frame = new MageFrame();
|
||||
frame.setVisible(true);
|
||||
sync.notify();
|
||||
sync.notifyAll();
|
||||
}
|
||||
});
|
||||
synchronized (sync) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue