private synchronized void block(boolean tf){
  if (tf) {
    try {
      if (m_filterThread.isAlive() && m_state != IDLE) {
        wait();
      }
    }
 catch (    InterruptedException ex) {
    }
  }
 else {
    notifyAll();
  }
}

private synchronized void block ( boolean tf ) { if ( tf ) { try { if ( m_filterThread . isAlive ( ) && m_state != IDLE ) { wait ( ) ; } } catch ( InterruptedException ex ) { } } else { notifyAll ( ) ; } }
function used to stop code that calls accepttrainingset , accepttestset , or acceptdataset . this is needed as filtering is performed inside a separate thread of execution .
