diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-12 14:01:43 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-12 14:01:43 +0000 |
| commit | 56bea7366c2046b64a5f39136671c079e2ff7b57 (patch) | |
| tree | 5fdba36c71cca2403f27f47e8106817883d6d9b0 /lib/thread.rb | |
| parent | 5cf9195fc083bdbe9d18373bd6c5ab0d217f54ef (diff) | |
merges r22765 from trunk into ruby_1_9_1.
--
* lib/thread.rb (SizedQueue#push): fix limit condition.
[ruby-dev:38135]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23172 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 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 |
