AtomicIndexFlag

scala.collection.generic.AtomicIndexFlag
trait AtomicIndexFlag extends Signalling

A mixin trait that implements index flag behaviour using atomic integers. The setIndex operation is wait-free, while conditional set operations setIndexIfGreater and setIndexIfLesser are lock-free and support only monotonic changes.

Attributes

Graph
Supertypes
trait Signalling
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def indexFlag: Int

Returns the value of the index flag.

Returns the value of the index flag.

$indexflag

Attributes

Returns

the value of the index flag

def setIndexFlag(f: Int): Unit

Sets the value of the index flag.

Sets the value of the index flag.

$indexflag

Value parameters

f

the value to which the index flag is set.

Attributes

Sets the value of the index flag if argument is greater than current value. This method does this atomically.

Sets the value of the index flag if argument is greater than current value. This method does this atomically.

$indexflag

Value parameters

f

the value to which the index flag is set

Attributes

Sets the value of the index flag if argument is lesser than current value. This method does this atomically.

Sets the value of the index flag if argument is lesser than current value. This method does this atomically.

$indexflag

Value parameters

f

the value to which the index flag is set

Attributes

Inherited and Abstract methods

def abort(): Unit

Sends an abort signal to other workers.

Sends an abort signal to other workers.

Abort flag being true means that a worker can abort and produce whatever result, since its result will not affect the final result of computation. An example of operations using this are find, forall and exists methods.

Attributes

Inherited from:
Signalling

Checks whether an abort signal has been issued.

Checks whether an abort signal has been issued.

Abort flag being true means that a worker can abort and produce whatever result, since its result will not affect the final result of computation. An example of operations using this are find, forall and exists methods.

Attributes

Returns

the state of the abort

Inherited from:
Signalling
def tag: Int

A read only tag specific to the signalling object. It is used to give specific workers information on the part of the collection being operated on.

A read only tag specific to the signalling object. It is used to give specific workers information on the part of the collection being operated on.

Attributes

Inherited from:
Signalling