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