class AtomicStampedReference[V <: AnyRef] extends AnyRef

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

Instance Constructors

  1. new AtomicStampedReference(initialRef: V, initialStamp: Int)

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 attemptStamp(expectedReference: V, newStamp: Int): Boolean

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

    Atomically sets the value of the stamp 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

    newStamp

    the new value for the stamp

    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, expectedStamp: Int, newStamp: Int): Boolean

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

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

    expectedReference

    the expected value of the reference

    newReference

    the new value for the reference

    expectedStamp

    the expected value of the stamp

    newStamp

    the new value for the stamp

    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(stampHolder: Array[Int]): V

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

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

    stampHolder

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

    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 getStamp(): Int

    Returns the current value of the stamp.

    Returns the current value of the stamp.

    returns

    the current value of the stamp

  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  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, newStamp: Int): Unit

    Unconditionally sets the value of both the reference and stamp.

    Unconditionally sets the value of both the reference and stamp.

    newReference

    the new value for the reference

    newStamp

    the new value for the stamp

  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, expectedStamp: Int, newStamp: Int): Boolean

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

    Atomically sets the value of both the reference and stamp to the given update values if the current reference is == to the expected reference and the current stamp is equal to the expected stamp. 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

    expectedStamp

    the expected value of the stamp

    newStamp

    the new value for the stamp

    returns

    true if successful

Inherited from AnyRef

Inherited from Any

Ungrouped