pub(super) fn remove_thread(&self, tid: KoID) {
        let mut inner = self.inner.lock();
        inner.threads.retain(|t| t.id() != tid);
        if inner.threads.is_empty() {
            drop(inner);
            self.terminate();
        }
    }
/// Remove a thread from the process.
///
/// If no more threads left, exit the process.
Remove a thread from the process.
If no more threads left, exit the process.
Remove a thread from the process . If no more threads left exit the process .
pub(super) fn remove_thread(&self, tid: KoID) {
        let mut inner = self.inner.lock();
        inner.threads.retain(|t| t.id() != tid);
        if inner.threads.is_empty() {
            drop(inner);
            self.terminate();
        }
    }
pub ( super ) fn remove_thread ( & self , tid : KoID ) { let mut inner = self . inner . lock ( ) ; inner . threads . retain ( | t | t . id ( ) != tid ) ; if inner . threads . is_empty ( ) { drop ( inner ) ; self . terminate ( ) ; } }
Remove a thread from the process.
Remove a thread from the process .
&self
tid
KoID
&self
tid
KoID