class AtomicMarkableReference[V <: AnyRef] extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AtomicMarkableReference
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AtomicMarkableReference(initialRef: V, initialMark: Boolean)
  2. new AtomicMarkableReference(value: MarkableReference[V])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attemptMark(expectedReference: V, newMark: Boolean): Boolean

    Atomically sets the value of the mark to the given update value if the current reference is == to the expected reference.

    Atomically sets the value of the mark to the given update value if the current reference is == to the expected reference. Any given invocation of this operation may fail (return false) spuriously, but repeated invocation when the current value holds the expected value and no other thread is also attempting to set the value will eventually succeed.

    expectedReference

    the expected value of the reference

    newMark

    the new value for the mark

    returns

    true if successful

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def compareAndSet(expectedReference: V, newReference: V, expectedMark: Boolean, newMark: Boolean): Boolean

    Atomically sets the value of both the reference and mark to the given update values if the current reference is == to the expected reference and the current mark is equal to the expected mark.

    Atomically sets the value of both the reference and mark to the given update values if the current reference is == to the expected reference and the current mark is equal to the expected mark.

    expectedReference

    the expected value of the reference

    newReference

    the new value for the reference

    expectedMark

    the expected value of the mark

    newMark

    the new value for the mark

    returns

    true if successful

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def get(markHolder: Array[Boolean]): V

    Returns the current values of both the reference and the mark.

    Returns the current values of both the reference and the mark. Typical usage is boolean[1] holder; ref = v.get(holder); .

    markHolder

    an array of size of at least one. On return, markHolder[0] will hold the value of the mark.

    returns

    the current value of the reference

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getReference(): V

    Returns the current value of the reference.

    Returns the current value of the reference.

    returns

    the current value of the reference

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isMarked(): Boolean

    Returns the current value of the mark.

    Returns the current value of the mark.

    returns

    the current value of the mark

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def set(newReference: V, newMark: Boolean): Unit

    Unconditionally sets the value of both the reference and mark.

    Unconditionally sets the value of both the reference and mark.

    newReference

    the new value for the reference

    newMark

    the new value for the mark

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. def weakCompareAndSet(expectedReference: V, newReference: V, expectedMark: Boolean, newMark: Boolean): Boolean

    Atomically sets the value of both the reference and mark to the given update values if the current reference is == to the expected reference and the current mark is equal to the expected mark.

    Atomically sets the value of both the reference and mark to the given update values if the current reference is == to the expected reference and the current mark is equal to the expected mark. This operation may fail spuriously and does not provide ordering guarantees, so is only rarely an appropriate alternative to compareAndSet.

    expectedReference

    the expected value of the reference

    newReference

    the new value for the reference

    expectedMark

    the expected value of the mark

    newMark

    the new value for the mark

    returns

    true if successful

Inherited from AnyRef

Inherited from Any

Ungrouped