Why didn't my threads exit correctly ?
Piet van Oostrum
piet at vanoostrum.org
Sat Oct 5 15:22:17 EDT 2013
李洛 <luolee.me at gmail.com> writes:
> Thanks for your reply, MRAB.
>
> I've seen that the child thread has been stoped, it just died in the queue.If I want the queue be
> empty, I must use queue.get() to dequeue and clean it, but I didn't do that.
> I've implement the thread using List now, thanks again.
Also make sure that l_ip and l_result are Queues instead of lists, as MRAB suggested.
--
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
More information about the Python-list
mailing list