// Consume self and kill all our currently executing children, MESSY
Consume self and kill all our currently executing children, MESSY
Consume self and kill all our currently executing children MESSY
pub fn kill(mut self) {
        if self.thread_handle.is_none() {
            panic!("Our thread handler is missing! We should have one at this point");
        }
        // Tell our thread to die and kill all running children
        println!("Setting command to die");
        set_command(ThreadCommands::DIE, &self.thread_command.clone());
        let handle = self.thread_handle.take().unwrap();
        println!("waiting on thread to die");
        handle.join().expect("Problem waiting on our thread!");
        println!("There may still be job windows open, close them.");
    }
pub fn kill ( mut self ) { if self . thread_handle . is_none ( ) { panic ! ( " " ) ; } // Tell our thread to die and kill all running children println ! ( " " ) ; set_command ( ThreadCommands :: DIE , & self . thread_command . clone ( ) ) ; let handle = self . thread_handle . take ( ) . unwrap ( ) ; println ! ( " " ) ; handle . join ( ) . expect ( " " ) ; println ! ( " " ) ; }
Consume self and kill all our currently executing children, MESSY
Consume self and kill all our currently executing children MESSY
mut self