diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/thread.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Mar 4 21:21:51 2009 Yusuke Endoh <mame@tsg.ne.jp> + + * lib/thread.rb (SizedQueue#push): fix limit condition. + [ruby-dev:38135] + Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (mingw): checks if unicows.lib is available. 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 |