Project

General

Profile

Bug #5259 » patch.diff

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

View differences:

lib/thread.rb
# Sets the maximum size of the queue.
#
def max=(max)
raise ArgumentError, "queue size must be positive" unless max > 0
diff = nil
@mutex.synchronize {
if max <= @max
    (1-1/1)