Exemple #1
0
  private void runWork() {
    int count = 6;

    while (noStopRequested) {
      fullwait.setValue(count);
      System.out.println("just set value to " + count);
      count++;

      try {
        Thread.sleep(1000);
      } catch (InterruptedException x) {
        // reassert interrupt
        Thread.currentThread().interrupt();
      }
    }
  }