Re: stop thread from outside 'run'

2012-06-05 Thread MRAB
On 05/06/2012 09:11, Prashant wrote: Hi, I am using tornado web socket server to communicate between python(server) and browser(client). To mimic the behavior of sending data to client and get results back, I am using threaded approach: class JobThread(threading.Thread): "" def

stop thread from outside 'run'

2012-06-05 Thread Prashant
Hi, I am using tornado web socket server to communicate between python(server) and browser(client). To mimic the behavior of sending data to client and get results back, I am using threaded approach: class JobThread(threading.Thread): "" def __init__(self, target): ""