Module: Concurrent::Synchronization::RbxAttrVolatile

Defined in:
lib/concurrent/synchronization/rbx_object.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/concurrent/synchronization/rbx_object.rb', line 5

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#full_memory_barrierObject



31
32
33
34
# File 'lib/concurrent/synchronization/rbx_object.rb', line 31

def full_memory_barrier
  # Rubinius instance variables are not volatile so we need to insert barrier
  Rubinius.memory_barrier
end