@!visibility private
# File lib/concurrent/collection/map/mri_map_backend.rb, line 12 def initialize(options = nil) super(options) @write_lock = Mutex.new end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 17 def []=(key, value) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 61 def clear @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 33 def compute(key) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 21 def compute_if_absent(key) if stored_value = _get(key) # fast non-blocking path for the most likely case stored_value else @write_lock.synchronize { super } end end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 29 def compute_if_present(key) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 53 def delete(key) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 57 def delete_pair(key, value) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 49 def get_and_set(key, value) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 37 def merge_pair(key, value) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 45 def replace_if_exists(key, new_value) @write_lock.synchronize { super } end
# File lib/concurrent/collection/map/mri_map_backend.rb, line 41 def replace_pair(key, old_value, new_value) @write_lock.synchronize { super } end