1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
mame 2009-03-04 12:23:37 +00:00
parent 43ba7d0058
commit 40c2dd156b
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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