summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-04 12:23:37 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-04 12:23:37 +0000
commitc7a4c25c2b378b448457c78fce8219fc84ed7537 (patch)
tree60c010cf2af83e9197a37a28d103916bde765580 /lib
parentb50e5ac832b50da22867f102432866dfab379302 (diff)
downloadruby-c7a4c25c2b378b448457c78fce8219fc84ed7537.tar.gz
ruby-c7a4c25c2b378b448457c78fce8219fc84ed7537.tar.xz
ruby-c7a4c25c2b378b448457c78fce8219fc84ed7537.zip
* lib/thread.rb (SizedQueue#push): fix limit condition.
[ruby-dev:38135] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/thread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index 68eeaf5b0..e5585c30b 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -292,7 +292,7 @@ class SizedQueue < Queue
t = nil
@mutex.synchronize{
while true
- break if @que.length <= @max
+ break if @que.length < @max
@queue_wait.push Thread.current
@mutex.sleep
end