зеркало из https://github.com/github/ruby.git
* lib/rinda/ring.rb (lookup_ring_any): fix Rinda::RingFinger.primary
hungs forever. [ruby-talk:395364] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a089fe010e
Коммит
113b94e145
|
@ -1,3 +1,8 @@
|
|||
Wed May 9 04:31:26 2012 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* lib/rinda/ring.rb (lookup_ring_any): fix Rinda::RingFinger.primary
|
||||
hungs forever. [ruby-talk:395364]
|
||||
|
||||
Tue May 8 21:09:00 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* include/ruby/win32.h (FD_SET): change function to macro.
|
||||
|
|
|
@ -203,13 +203,17 @@ module Rinda
|
|||
queue.push(ts)
|
||||
end
|
||||
queue.push(nil)
|
||||
end
|
||||
|
||||
@primary = queue.pop
|
||||
raise('RingNotFound') if @primary.nil?
|
||||
|
||||
Thread.new do
|
||||
while it = queue.pop
|
||||
@rings.push(it)
|
||||
end
|
||||
end
|
||||
|
||||
@primary = queue.pop
|
||||
raise('RingNotFound') if @primary.nil?
|
||||
@primary
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче