You missed the point. It shouldn't terminate in step 7!
When I said it dequeued the last item, I meant the last item of the queue. There could be millions more items to process, but they're not going to be processed. Updated the linked post for clarification.
In reply to Re^10: Proper undefine queue with multithreads
by ikegami
in thread Proper undefine queue with multithreads
by sanc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |