VolatileAbort

trait VolatileAbort extends Signalling

A mixin trait that implements abort flag behaviour using volatile variables.

A mixin trait that implements abort flag behaviour using volatile variables.

class Object
trait Matchable
class Any

Value members

Concrete methods

override def abort(): Unit
Definition Classes
override def isAborted: Boolean
Definition Classes

Inherited methods

def indexFlag: Int

Returns the value of the index flag.

Returns the value of the index flag.

The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

Returns

the value of the index flag

Inherited from
Signalling
def setIndexFlag(f: Int): Unit

Sets the value of the index flag.

Sets the value of the index flag.

The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

Value Params
f

the value to which the index flag is set.

Inherited from
Signalling
def setIndexFlagIfGreater(f: Int): Unit

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.

The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

Value Params
f

the value to which the index flag is set

Inherited from
Signalling
def setIndexFlagIfLesser(f: Int): Unit

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.

The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

Value Params
f

the value to which the index flag is set

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.

Inherited from
Signalling