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