May-03-2017, 08:16 PM
Double posting isn't needed. I've merged the threads together.
If msgqueue is a Queue, then that should never run, as it'd never equal the string "stop".
Aside from that, I can't run your code, due to a pickle error with the queue (it works if I just don't pass that parameter, but then it doesn't do anything since the queue is just None). Might be an unrelated issue on my end, though, as I rarely use the multiprocessing module.
(May-03-2017, 07:59 PM)deboerdn2000 Wrote: if msgqueue=='stop':
print('Exit loop')
break
If msgqueue is a Queue, then that should never run, as it'd never equal the string "stop".
Aside from that, I can't run your code, due to a pickle error with the queue (it works if I just don't pass that parameter, but then it doesn't do anything since the queue is just None). Might be an unrelated issue on my end, though, as I rarely use the multiprocessing module.