Method: Concurrent::Synchronization::Object.attr_volatile

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

.attr_volatile(*names) ⇒ Array<Symbol>

Creates methods for reading and writing (as attr_accessor does) to a instance variable with volatile (Java) semantic. The instance variable should be accessed oly through generated methods.

Parameters:

  • names (Array<Symbol>)

    of the instance variables to be volatile

Returns:

  • (Array<Symbol>)

    names of defined method names



# File 'lib/concurrent/synchronization/object.rb', line 26