/** * Interrupts and waits for termination of all the threads started * so far by current test. * * @param log Logger. */ public static void stopThreads(IgniteLogger log) { busyLock.block(); try { GridTestSafeThreadFactory.stopAllThreads(log); } finally { busyLock.unblock(); } }