class ParSyntax extends PROC
Syntactic composition of PROC
s.
Evaluating an expression of the form
p
1 ||
p
2 || ... ||
p
n
yields a
ParSyntax(List(
p
n, ...,
p
1))
This is done because ||
is parsed left-associatively by Scala,
and it's more efficient to cons its right argument to the the
front of the accumulated list than it is to append it at the
end.
The computation of its meaning is deferred until (the first time) it is run (by forking or applying).
At this point the process list is reversed and compiled just in time
by being embedded in a Par
. The reversal is not semantically necessary,
but it helps to make a subsequent ParException
more intelligible. More
importantly, it is consistent with the way in which a prefix ||
constructs
its Par
.
- Alphabetic
- By Inheritance
- ParSyntax
- PROC
- Function0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
val
__name: String
- Attributes
- protected[io.threadcso]
- Definition Classes
- PROC
-
val
__stackSize: Long
- Attributes
- protected[io.threadcso]
- Definition Classes
- PROC
-
def
apply(): Unit
Run the component processes; each in its own thread (the first process runs in the current thread.
Run the component processes; each in its own thread (the first process runs in the current thread. Terminate when all processes have terminated: with or without throwing an exception.
If all processes terminated without throwing an exception, then terminate cleanly.
If all exceptions thrown are of the
Stopped
family, then a singleStopped
exception is thrown on termination.Otherwise terminate by throwing a
ParException
that embeds the sequence of termination reasons of the component processes (withnull
for a clean termination). -
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] )
-
def
fork: Handle
Fork this process and return a handle on the thread in which it is running.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
stackSize: Long
- Definition Classes
- PROC
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- PROC → Function0 → 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( ... )
-
def
withName(_name: String): PROC
Set the name of this
PROC
and returnthis
PROC
.Set the name of this
PROC
and returnthis
PROC
.- Definition Classes
- PROC
-
def
withStackSize(_stackSize: Long): PROC
Set the (advisory) stack size for threads in which this
PROC
will run tostackSize
, and returnthis
PROC
.Set the (advisory) stack size for threads in which this
PROC
will run tostackSize
, and returnthis
PROC
. SomeJVM
s allow threads to be started with a given stack size.- Definition Classes
- PROC
-
def
||(other: PROC): PROC
Construct the parallel composition of
this
andother
-
def
||(other: ParSyntax): PROC
Construct the parallel composition of
this
andother