Esempio n. 1
0
  public void terminateClean() throws Exception {
    sig_interrupt.setValue(true);

    if (_outputList.size() > 1) {
      CharPump p1 = _outputList.get(0);
      if (p1 != null) {
        synchronized (p1) {
          p1.wait(1000);
        }
      }

      CharPump p2 = _outputList.get(1);

      if (p2 != null) {
        synchronized (p2) {
          p2.wait(1000);
        }
      }
    }
    cleanUpProcess();
  }