Project

General

Profile

Bug #5258 » patch.diff

Glass_saga (Masaki Matsushita), 09/01/2011 10:23 PM

View differences:

lib/thread.rb
@mutex.synchronize{
while true
break if @que.length < @max
@queue_wait.push Thread.current
@queue_wait.push Thread.current unless @queue_wait.include?(Thread.current)
@mutex.sleep
end
(1-1/2)