summaryrefslogtreecommitdiff
path: root/lib/rinda
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-30 06:22:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-30 06:22:30 +0000
commit4b298ad77a8388f0aae62daeca66659a8effeade (patch)
tree163674f4123bf461a86b4f6fd1de964297057bae /lib/rinda
parent0df79477bd2cd534ad2d89bfdbf9708c64b59eed (diff)
downloadruby-4b298ad77a8388f0aae62daeca66659a8effeade.tar.gz
Use qualified names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rinda')
-rw-r--r--lib/rinda/ring.rb2
-rw-r--r--lib/rinda/tuplespace.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index 9ec8a2fb2f..9b3f13eb93 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -385,7 +385,7 @@ module Rinda
# TupleSpaces can be found by calling +to_a+.
def lookup_ring_any(timeout=5)
- queue = Queue.new
+ queue = Thread::Queue.new
Thread.new do
self.lookup_ring(timeout) do |ts|
diff --git a/lib/rinda/tuplespace.rb b/lib/rinda/tuplespace.rb
index e29bd63126..3ce8d2984f 100644
--- a/lib/rinda/tuplespace.rb
+++ b/lib/rinda/tuplespace.rb
@@ -246,7 +246,7 @@ module Rinda
def initialize(place, event, tuple, expires=nil)
ary = [event, Rinda::Template.new(tuple)]
super(ary, expires)
- @queue = Queue.new
+ @queue = Thread::Queue.new
@done = false
end