scalax.control

class AtomicCell

[source: scalax/control/AtomicCell.scala]

final class AtomicCell[A](init : A)
extends AnyRef
Method Summary
def compareAndSet (expect : A, update : A) : Boolean
def get : A
def getAndSet (n : A) : A
def set (n : A) : Unit
override def toString : java.lang.String
Returns a string representation of the object.
def weakCompareAndSet (expect : A, update : A) : Boolean
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def compareAndSet(expect : A, update : A) : Boolean

def get : A

def getAndSet(n : A) : A

def set(n : A) : Unit

override def toString : java.lang.String
Returns a string representation of the object.

The default representation is platform dependent.

Returns
a string representation of the object.


def weakCompareAndSet(expect : A, update : A) : Boolean


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.