void speech_synthesizer::stop() { if(!has_started()) return; state::Set(state::stopped); signal_stop(); player.stop(); player.join(); logger::log(2,"Stopped the playback thread"); }
i32 cc_timer_stop(cc_hndl hndl) { struct sw_timer *swt = (struct sw_timer*) hndl; u32 intr_mask; i32 rv = -1; intr_mask = dsbl_irqc(); if(swt && has_started(swt)) { rv = timer_stop(swt); } enbl_irqc(intr_mask); return rv; }