Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 public class SWCO_Sample {
     CountDownLatch cdl;
     CyclicBarrier cb;
 
     public SWCO_Sample() {
          = new CountDownLatch(2);
         = new CyclicBarrier(2);
    }
    public void waitCDL() throws InterruptedException {
        .wait();
    }
    public void waitCB() throws InterruptedException {
        .wait();
    }
New to GrepCode? Check out our FAQ X