p4raw-id: //depot/perl@16016
threads = NULL;
}
else {
- thread->next->prev = thread->prev->next;
- thread->prev->next = thread->next->prev;
+ thread->next->prev = thread->prev;
+ thread->prev->next = thread->next;
if (threads == thread) {
threads = thread->next;
}
Zero(thread,1,ithread);
thread->next = threads;
thread->prev = threads->prev;
+ threads->prev = thread;
thread->prev->next = thread;
/* Set count to 1 immediately in case thread exits before
* we return to caller !