void function ( boolean arg0 ) { lock . lock ( ) ; try { if ( arg0 ) cond . signalAll ( ) ; else cond . signal ( ) ; } finally { lock . unlock ( ) ; } }
wakes up one signal_all = false or all signal_all = true blocked threads . usually called when the condition changed to true . concode_field_sep Lock lock concode_elem_sep java.util.concurrent.locks.Condition cond concode_field_sep void waitFor concode_elem_sep boolean waitFor