My consumer side of the queue:
m = queue.get()
queue.task_done()
<rest of the program>
Questions:
Does
task_done()
effectively popsm
off the queue and release whatever locks the consumer has on the queue?I need to use
m
during the rest of the program. Is it safe, or do I need to copy it before I calltask_done()
or ism
usable aftertask_done()
?
be happy