Bug #5259 » patch.diff
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
|