Click or drag to resize
AtomicBoolean Class
Implementation of the java.concurrent.util.AtomicBoolean type. Uses MemoryBarrier internally to enforce ordering of writes without any explicit locking. .NET's strong memory on write guarantees might already enforce this ordering, but the addition of the MemoryBarrier guarantees it.
Inheritance Hierarchy
SystemObject
  Akka.UtilAtomicBoolean

Namespace: Akka.Util
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public class AtomicBoolean

The AtomicBoolean type exposes the following members.

Constructors
  NameDescription
Public methodAtomicBoolean
Sets the initial value of this AtomicBoolean to [!:originalValue].
Top
Methods
  NameDescription
Public methodCompareAndSet
If Value equals [!:expected], then set the Value to [!:newValue]. Returns true if [!:newValue] was set, false otherise.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic member(Boolean to AtomicBoolean)
Implicit conversion operator = allows us to cast any bool directly into a AtomicBoolean instance.
Public operatorStatic member(AtomicBoolean to Boolean)
Implicit conversion operator = automatically casts the AtomicBoolean to a Boolean
Top
Extension Methods
Properties
See Also