public void lockInterruptibly() throws InterruptedException {
   sync.acquireInterruptibly(1);
 }