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:
parent
445a8f0348
commit
4f73277a35
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user