7167780: Hang javasoft.sqe.tests.api.javax.swing.Timer.Ctor2Tests

Reviewed-by: alexsch
This commit is contained in:
Pavel Porvatov 2012-07-25 13:41:46 +04:00
parent 8007dfcd9b
commit 30ec391b79

View File

@ -187,6 +187,9 @@ class TimerQueue implements Runnable
addTimer(delayedTimer);
}
}
// Allow run other threads on systems without kernel threads
timer.getLock().newCondition().awaitNanos(1);
} catch (SecurityException ignore) {
} finally {
timer.getLock().unlock();