public static void await ( String name ) throws InterruptedException { try ( LockResource r = new LockResource ( sLock ) ) { while ( ! sTimers . containsKey ( name ) ) { sCondition . await ( ) ; } } }
Waits for the given thread to be ready to be scheduled .