aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/vendor')
-rw-r--r--lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb2
-rw-r--r--lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb b/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb
index 5a9c4a27bb..8210ab4c41 100644
--- a/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb
+++ b/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb
@@ -27,7 +27,7 @@ class Bundler::ConnectionPool
# @!visibility private
def initialize
- @mutex = Mutex.new
+ @mutex = Thread::Mutex.new
@last_time = Time.now.to_f
end
diff --git a/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb b/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb
index f3fe1e04ad..cff8477c1f 100644
--- a/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb
+++ b/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb
@@ -39,8 +39,8 @@ class Bundler::ConnectionPool::TimedStack
@created = 0
@que = []
@max = size
- @mutex = Mutex.new
- @resource = ConditionVariable.new
+ @mutex = Thread::Mutex.new
+ @resource = Thread::ConditionVariable.new
@shutdown_block = nil
end