ruby-changes:11543
From: yugui <ko1@a...>
Date: Sun, 12 Apr 2009 23:02:14 +0900 (JST)
Subject: [ruby-changes:11543] Ruby:r23172 (ruby_1_9_1): merges r22765 from trunk into ruby_1_9_1.
yugui 2009-04-12 23:01:43 +0900 (Sun, 12 Apr 2009) New Revision: 23172 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23172 Log: merges r22765 from trunk into ruby_1_9_1. -- * lib/thread.rb (SizedQueue#push): fix limit condition. [ruby-dev:38135] Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/lib/thread.rb Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 23171) +++ ruby_1_9_1/ChangeLog (revision 23172) @@ -1,3 +1,8 @@ +Wed Mar 4 21:21:51 2009 Yusuke Endoh <mame@t...> + + * lib/thread.rb (SizedQueue#push): fix limit condition. + [ruby-dev:38135] + Wed Mar 4 03:42:56 2009 James Edward Gray II <jeg2@r...> * lib/csv.rb: A patch from Madoka Yakamamoto to prevent an infinite Index: ruby_1_9_1/lib/thread.rb =================================================================== --- ruby_1_9_1/lib/thread.rb (revision 23171) +++ ruby_1_9_1/lib/thread.rb (revision 23172) @@ -292,7 +292,7 @@ t = nil @mutex.synchronize{ while true - break if @que.length <= @max + break if @que.length < @max @queue_wait.push Thread.current @mutex.sleep end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/