pub fn remove_thread(&mut self, tid : uint) {
		assert!(self.threads.contains_key(&tid));
		let t = self.threads.pop(&tid).unwrap();

		if !t.daemon {
			self.alive_nondaemon_count -= 1;
		}

		self.stopped_threads.push(t);
		self.state = if self.alive_nondaemon_count == 0 { TMS_AllNonDaemonsDead } else { TMS_Running };
	}
// ----------------------------------------------
// Unregister a thread from the ThreadManager. The thread
// is shelved of to the so called 'stopped-threads' list,
// which makes its name, priority and other parameter 
// available even after it has been removed from the live
// thread state.
Unregister a thread from the ThreadManager. The thread
is shelved of to the so called 'stopped-threads' list,
which makes its name, priority and other parameter
available even after it has been removed from the live
thread state.
Unregister a thread from the ThreadManager . The thread is shelved of to the so called ' stopped - threads ' list which makes its name priority and other parameter available even after it has been removed from the live thread state .
pub fn remove_thread(&mut self, tid : uint) {
		assert!(self.threads.contains_key(&tid));
		let t = self.threads.pop(&tid).unwrap();
		if !t.daemon {
			self.alive_nondaemon_count -= 1;
		}
		self.stopped_threads.push(t);
		self.state = if self.alive_nondaemon_count == 0 { TMS_AllNonDaemonsDead } else { TMS_Running };
	}
pub fn remove_thread ( & mut self , tid : uint ) { assert ! ( self threads contains_key ( tid ) ) ; let t = self . threads . pop ( & tid ) . unwrap ( ) ; if ! t . daemon { self . alive_nondaemon_count -= 1 ; } self . stopped_threads . push ( t ) ; self . state = if self . alive_nondaemon_count == 0 { TMS_AllNonDaemonsDead } else { TMS_Running } ; }
Unregister a thread from the ThreadManager.
Unregister a thread from the ThreadManager .
&mut self
tid
uint