Facebook
From Colossal Gibbon, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 290
  1. while(data.hasNextInt()){
  2.                     synchronized (Relay.this){
  3.                          if(nextId==null) {
  4.                                 nextId = data.nextInt();
  5.                                 inform();
  6.                         }
  7.                         try {
  8.                             Relay.this.wait();
  9.                         }
  10.                         catch (InterruptedException e) {
  11.                         }
  12.                     }
  13.                 }
  14.                 koniec=true;
  15.                 inform();