aboutsummaryrefslogtreecommitdiffstats
path: root/lib/thwait.rb
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
commit7e24aacf8bd3f6bc45ba7d42263d70dae33d5b24 (patch)
tree163674f4123bf461a86b4f6fd1de964297057bae /lib/thwait.rb
parentf48dbbf07455ee4362003c8ecc19612a4d6769d4 (diff)
downloadruby-7e24aacf8bd3f6bc45ba7d42263d70dae33d5b24.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/thwait.rb')
-rw-r--r--lib/thwait.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thwait.rb b/lib/thwait.rb
index db7e6b1ce5..239915baef 100644
--- a/lib/thwait.rb
+++ b/lib/thwait.rb
@@ -51,7 +51,7 @@ class ThreadsWait
#
def initialize(*threads)
@threads = []
- @wait_queue = Queue.new
+ @wait_queue = Thread::Queue.new
join_nowait(*threads) unless threads.empty?
end