Class TAtomicMarkableReference<V>


  • public class TAtomicMarkableReference<V>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private V reference  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compareAndSet​(V expectedReference, V newReference, boolean expectedMark, boolean newMark)  
      V get​(boolean[] markHolder)  
      V getReference()  
      boolean isMarked()  
      void set​(V newReference, boolean newMark)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • reference

        private V reference
    • Constructor Detail

      • TAtomicMarkableReference

        public TAtomicMarkableReference​(V initialRef,
                                        boolean initialMark)
    • Method Detail

      • compareAndSet

        public boolean compareAndSet​(V expectedReference,
                                     V newReference,
                                     boolean expectedMark,
                                     boolean newMark)
      • get

        public V get​(boolean[] markHolder)
      • getReference

        public V getReference()
      • set

        public void set​(V newReference,
                        boolean newMark)
      • isMarked

        public boolean isMarked()