class CombiningBarrier[T] extends AnyRef
A CombiningBarrier(n, e, _ ⊕ _)
supports the (repeated) synchronization
of n
processes. If b
is such a barrier then b.sync(x)
calls are
stalled until n
have been made. We say that such a call contributes
x
. If the syncing calls contribute x1
, x2
, ... xn
then the value they all return is e ⊕ x1 ⊕ ... ⊕ xn
. The function ⊕
must
be associative.
$Revision: 239 $ $Date: 2017-10-12 18:54:09 +0100 (Thu, 12 Oct 2017) $
- Alphabetic
- By Inheritance
- CombiningBarrier
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CombiningBarrier(n: Int, e: T, op: (T, T) ⇒ T, name: String = "")
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
sync(t: T): T
Wait until all
n
processes have called sync, then return the value calculated withop
, ande
from the individual processes' contributions. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )