Skip to content

Commit 0ba4f30

Browse files
committed
Merge pull request rspec#2010 from rspec/switch_reentrant_mutex_to_support
Switch to using re entrant mutex from rspec-support
2 parents 72cda5c + cb392d3 commit 0ba4f30

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)