diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-04 12:23:37 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-04 12:23:37 +0000 |
commit | 40c2dd156bd983d5f7a6cf85a11b4977f3720fef (patch) | |
tree | 60c010cf2af83e9197a37a28d103916bde765580 /lib/thread.rb | |
parent | 43ba7d00586a03a18e321514d5287bd1fae69d2a (diff) | |
download | ruby-40c2dd156bd983d5f7a6cf85a11b4977f3720fef.tar.gz |
* lib/thread.rb (SizedQueue#push): fix limit condition.
[ruby-dev:38135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/thread.rb')
-rw-r--r-- | lib/thread.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.rb b/lib/thread.rb index 68eeaf5b05..e5585c30bd 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 |