Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 2a45359

Browse files
committed
Merge pull request #2010 from rspec/switch_reentrant_mutex_to_support
Switch to using re entrant mutex from rspec-support
2 parents 6155dd7 + 7248e68 commit 2a45359

File tree

4 files changed

+2
-147
lines changed

4 files changed

+2
-147
lines changed

lib/rspec/core/memoized_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'rspec/core/reentrant_mutex'
1+
require 'rspec/support/reentrant_mutex'
22

33
module RSpec
44
module Core
@@ -148,7 +148,7 @@ def __init_memoized
148148
class ThreadsafeMemoized
149149
def initialize
150150
@memoized = {}
151-
@mutex = ReentrantMutex.new
151+
@mutex = Support::ReentrantMutex.new
152152
end
153153

154154
def fetch_or_store(key)

lib/rspec/core/mutex.rb

Lines changed: 0 additions & 63 deletions
This file was deleted.

lib/rspec/core/reentrant_mutex.rb

Lines changed: 0 additions & 52 deletions
This file was deleted.

spec/rspec/core/reentrant_mutex_spec.rb

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)