Class JmcAtomicReference<V>
java.lang.Object
org.mpi_sws.jmc.api.util.concurrent.JmcAtomicReference<V>
- Type Parameters:
V- the type of the reference held by this atomic reference
A redefinition of
AtomicReference to support JMC model
checking. This class provides atomic operations on a reference variable, ensuring thread safety
through the use of a reentrant lock.-
Constructor Summary
ConstructorsConstructorDescriptionJmcAtomicReference(V initialValue) Constructs a new JmcAtomicReference with the specified initial value. -
Method Summary
-
Constructor Details
-
JmcAtomicReference
Constructs a new JmcAtomicReference with the specified initial value.- Parameters:
initialValue- the initial value of the atomic reference
-
-
Method Details
-
compareAndSet
Constructs a new JmcAtomicReference with a null initial value. -
get
-
set
-
getAndSet
-