From: Eric Jacoboni Date: 2008-02-21T06:51:18+09:00 Subject: Re: Ruby 1.9, threads and FreeBSD 5 Mental Guy wrote: > Please note that you shouldn't ever use the sleep trick in > production code -- it merely hides problems during testing > when they can still occur under production load. Oh yes, i know synchronization should never relies on temporisations... In this case, it's useful to point the bug you mention in my use of #signal. I've had wrote a general semaphore implementation using IO.pipe but your PortableSemaphore is way more elegant... thanks a lot (i just wonder if #up/#down honor the FIFO policy) BTW, as for Queues : i admit i never use them. -- Posted via http://www.ruby-forum.com/.