summaryrefslogtreecommitdiff
path: root/lib/thwait.rb
diff options
context:
space:
mode:
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