Retrieves data from the queue and runs a waiting thread, if any.
# File lib/thread.rb, line 323
def pop(*args)
retval = super
@mutex.synchronize {
if @que.length < @max
begin
t = @queue_wait.shift
t.wakeup if t
rescue ThreadError
retry
end
end
}
retval
end