On 13/04/07 at 16:05 +0200, Stephan Maka wrote:
> bino_oetomo wrote:
> > I tried it once again with Jabber::debug set true.
> 
> Thanks, it is now more obvious.
> 
> > 08:03:47 RECEIVED:
> >     <stream:stream from='10.10.10.1'
> > xmlns:stream='http://etherx.jabber.org/streams' id='3415775970'
> > version='1.0' xml:lang='en' xmlns='jabber:client'/>
> > 08:03:47 EXCEPTION:
> >     ThreadError
> >     not owner
> >     /usr/local/lib/ruby/site_ruby/1.8/xmpp4r/stream.rb:350:in `unlock'
> >     /usr/local/lib/ruby/site_ruby/1.8/xmpp4r/stream.rb:350:in `wakeup'
> >     /usr/local/lib/ruby/site_ruby/1.8/xmpp4r/stream.rb:238:in
> > `receive_nonthreaded'
> 
> Ouch. I didn't know a mutex locked by one thread cannot be unlocked by
> another. This restriction seems to have been introduced by Ruby-1.8.6.

You probably want to use ConditionVariable, if you want one thread to
wait until a condition is true, and be notified by another thread. I can
help with the code if you need it.
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xmpp4r-devel mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/xmpp4r-devel

Reply via email to