question: private synchronized void block ( boolean tf ) { if ( tf ) { try { if ( m_ioThread . isAlive ( ) && m_state != IDLE ) { wait ( ) ; } } catch ( InterruptedException ex ) { } } else { notifyAll ( ) ; } }
target:  Function used to stop code that calls acceptTrainingSet. This is needed as classifier construction is performed inside a separate thread of execution.