Re: Threading.Condition problem

2009-07-13 Thread Piet van Oostrum
> Gabriel Rossetti (GR) wrote: >GR> Piet van Oostrum wrote: ... >GR> I wrote a small example that listens for xmpp msgs in a thread. The main >GR> program calls a function that blocks (using Condition.wait) until a msg >GR> has been received and then returns the msg. When a msg arrives, it is

Re: Threading.Condition problem

2009-07-13 Thread Gabriel Rossetti
Piet van Oostrum wrote: Gabriel Rossetti (GR) wrote: GR> Sorry if this appears twice, I sent it once with an attachment and it never GR> arrived so maybe the attachment is posing problems. I inlined the code this GR> time (at the bottom), thank you, GR> Gabriel

Re: Threading.Condition problem

2009-07-11 Thread Piet van Oostrum
> Gabriel Rossetti (GR) wrote: >GR> Sorry if this appears twice, I sent it once with an attachment and it never >GR> arrived so maybe the attachment is posing problems. I inlined the code this >GR> time (at the bottom), thank you, >GR> Gabriel >GR> ## Original messag

Threading.Condition problem

2009-07-10 Thread Gabriel Rossetti
Sorry if this appears twice, I sent it once with an attachment and it never arrived so maybe the attachment is posing problems. I inlined the code this time (at the bottom), thank you, Gabriel ## Original message Hello everyone, I wrote a

Re: Threading.Condition problem

2009-07-10 Thread Gabriel Rossetti
The previous msg w/ attached code is the wrong code, please use the code attached to this msg, thank you and sorry for this. Gabriel Gabriel Rossetti wrote: Hello everyone, I wrote a small example that listens for xmpp msgs in a thread. The main program calls a function that blocks (using C

Threading.Condition problem

2009-07-10 Thread Gabriel Rossetti
Hello everyone, I wrote a small example that listens for xmpp msgs in a thread. The main program calls a function that blocks (using Condition.wait) until a msg has been received and then returns the msg. When a msg arrives, it is put in a variable in the thread's object, it then calls the not