class Concurrent::AtomicBoolean

@!macro atomic_boolean_public_api
@see docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicBoolean.html java.util.concurrent.atomic.AtomicBoolean
“‘
3.340000 0.010000 3.350000 ( 0.855000)
Testing with Concurrent::JavaAtomicBoolean…
5.240000 2.520000 7.760000 ( 3.683000)
Testing with Concurrent::MutexAtomicBoolean…
Testing with jruby 1.9.3
0.740000 0.000000 0.740000 ( 0.740206)
Testing with Concurrent::CAtomicBoolean…
2.790000 0.000000 2.790000 ( 2.791454)
Testing with Concurrent::MutexAtomicBoolean…
Testing with ruby 2.1.2
“`
Performance:
@!macro thread_safe_variable_comparison
briefly but no explicit locking is required.
boolean and thread-safe and guaranteed to succeed. Reads and writes may block
A boolean value that can be updated atomically. Reads and writes to an atomic
@!macro atomic_boolean

def to_s

Returns:
  • (String) - Short string representation.
def to_s
  format '%s value:%s>', super[0..-2], value
end