Re: stop a thread safetely

2005-05-13 Thread Peter Hansen
Ivan Voras wrote: > Peter Hansen wrote: > >> call to recv() does not guarantee that the full 608 bytes of data is > > Does read() have that guarantee? Assuming you mean read() on the file object that would be returned by calling makefile() on the socket, then the docs imply that this is the c

Re: stop a thread safetely

2005-05-13 Thread Ivan Voras
Peter Hansen wrote: > call to recv() does not guarantee that the full 608 bytes of data is Does read() have that guarantee? -- http://mail.python.org/mailman/listinfo/python-list

Re: stop a thread safetely

2005-05-13 Thread Peter Hansen
Zunbeltz Izaola wrote: > On Fri, 13 May 2005 09:10:13 -0400, Peter Hansen wrote: >>How did you intend to stop the thread in a manner which might be unsafe? >>(Hint, unless you're doing something unusual, you can't.) > > I have a threaded object (Mythread). It checks if want_thread > variable is Tr

Re: stop a thread safetely

2005-05-13 Thread Jp Calderone
On Fri, 13 May 2005 16:47:34 +0200, Zunbeltz Izaola <[EMAIL PROTECTED]> wrote: >On Fri, 13 May 2005 09:10:13 -0400, Peter Hansen wrote: > >> >> How did you intend to stop the thread in a manner which might be unsafe? >> (Hint, unless you're doing something unusual, you can't.) >> > >I have a thread

Re: stop a thread safetely

2005-05-13 Thread Zunbeltz Izaola
On Fri, 13 May 2005 09:10:13 -0400, Peter Hansen wrote: > > How did you intend to stop the thread in a manner which might be unsafe? > (Hint, unless you're doing something unusual, you can't.) > I have a threaded object (Mythread). It checks if want_thread variable is True to return. The proble

Re: stop a thread safetely

2005-05-13 Thread Peter Hansen
Zunbeltz Izaola wrote: > I have a wxPython application that call makes a thread (with threading > module). In some moment i've to stop the thread but i need to finish a > funtion in the thread before it can stop. How can i achive this? How did you intend to stop the thread in a manner which might

stop a thread safetely

2005-05-13 Thread Zunbeltz Izaola
Hi, I have a wxPython application that call makes a thread (with threading module). In some moment i've to stop the thread but i need to finish a funtion in the thread before it can stop. How can i achive this? Thanks in advance Zunbletz -- http://mail.python.org/mailman/listinfo/python-list