468469470471472473474475476477478
try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } lock.destroy(); } }).start(); lock.lock();
640641642643644645646647648649650
latch.await(30, TimeUnit.SECONDS); Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } lock.destroy(); } }).start(); lock.lock(); latch.countDown();