The comment complained about not having a thread_unlink()

and did the work itself, but thread_unink() has existed for a while... use it.
This commit is contained in:
julian 2004-04-02 01:01:34 +00:00
parent ead5652856
commit a7eb128756

View File

@ -81,11 +81,8 @@ thr_exit1(void)
/* Clean up cpu resources. */
cpu_thread_exit(td);
/* XXX make thread_unlink() */
TAILQ_REMOVE(&p->p_threads, td, td_plist);
p->p_numthreads--;
TAILQ_REMOVE(&kg->kg_threads, td, td_kglist);
kg->kg_numthreads--;
/* Unlink the thread from the process and kseg.
thread_unlink(td);
ke->ke_state = KES_UNQUEUED;
ke->ke_thread = NULL;