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 Elischer 2004-04-02 01:01:34 +00:00
parent 445a8f0348
commit 4f73277a35

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;