Clean clear_ctid when thread exits

This commit is contained in:
Hui, Chunyang 2021-12-16 07:47:21 +00:00 committed by Zongmin.Gu
parent 61ce53c67a
commit 8aed759161

@ -53,6 +53,7 @@ fn exit_thread(term_status: TermStatus) {
}
futex_wake(ctid_ptr.as_ptr() as *const i32, 1);
}
thread.set_clear_ctid(None);
// Notify waiters that the owner of robust futex has died.
thread.wake_robust_list();