Pausing and Unpausing Threads

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Aug 13 01:31:31 EDT 2007


En Sun, 12 Aug 2007 21:45:47 -0300, Aaron J. M. <ajmacd at ns.sympatico.ca>  
escribi�:

> Uhg, I thought of something I didn't consider before: how to cleanly
> end the Server/DirectedControl(l)er process.

Use the same Queue; put a special kind of Action, or just a None object,  
to tell the thread that there are no more things to process.
 From the main thread, you can join() the others, waiting for them to  
finish.

-- 
Gabriel Genellina




More information about the Python-list mailing list