Module: Concurrent::Synchronization::TruffleAttrVolatile

Defined in:
lib/concurrent/synchronization/truffle_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/truffle_object.rb', line 5

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

Instance Method Details

#full_memory_barrierObject



16
17
18
19
# File 'lib/concurrent/synchronization/truffle_object.rb', line 16

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