From: Adam Bender Date: 2008-03-26T12:50:08+09:00 Subject: Re: thread.rb On Tue, Mar 25, 2008 at 8:09 PM, MenTaLguY wrote: > On Wed, 26 Mar 2008 07:32:27 +0900, "Adam Bender" wrote: > > > > I couldn't find the Scheduler gem > > gem install scheduler Hmm. That didn't work the first time I tried it (the gem wasn't found), but it worked just now. > In this case, the problem is that you are always putting the thread to > sleep on the "pops" queue, even when there is already a pushed value > available on the "pushes" queue. I realized later on that that was probably the problem, and indeed it was. > Implementing this in conjunction with timeout is harder, but possible: Awesome, this gives me exactly what I need. Thanks for you help. Adam