3 @@ -916,6 +916,24 @@ thread_cancel_event (struct thread_maste
4 thread_add_unuse (m, t);
8 + /* thread can be on the ready list too */
9 + thread = m->ready.head;
20 + thread_list_delete (&m->ready, t);
21 + t->type = THREAD_UNUSED;
22 + thread_add_unuse (m, t);