diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/actors/fringe.scala | 9 | ||||
-rw-r--r-- | docs/examples/actors/message.scala | 12 |
2 files changed, 2 insertions, 19 deletions
diff --git a/docs/examples/actors/fringe.scala b/docs/examples/actors/fringe.scala index 2afdc41b4f..2026628cb3 100644 --- a/docs/examples/actors/fringe.scala +++ b/docs/examples/actors/fringe.scala @@ -2,8 +2,6 @@ package examples.actors import scala.actors.Actor._ import scala.actors.{Channel, OutputChannel} -import scala.actors.{Debug, Scheduler} -import scala.actors.scheduler.ResizableThreadPoolScheduler /** @author Philipp Haller @@ -20,13 +18,6 @@ object fringe extends Application { case class Equal(atom1: Option[Leaf], atom2: Option[Leaf]) case class Extract(tree: Tree) - Debug.level = 3 - Scheduler.impl = { - val s = new ResizableThreadPoolScheduler(false) - s.start() - s - } - val comparator = actor { val extractor1 = actor(extractorBehavior()) val extractor2 = actor(extractorBehavior()) diff --git a/docs/examples/actors/message.scala b/docs/examples/actors/message.scala index eb29468160..d385543470 100644 --- a/docs/examples/actors/message.scala +++ b/docs/examples/actors/message.scala @@ -3,8 +3,6 @@ package examples.actors import scala.actors.{Actor, Scheduler} import scala.actors.Actor._ import scala.actors.scheduler.SingleThreadedScheduler -import scala.actors.{Debug, Scheduler} -import scala.actors.scheduler.ResizableThreadPoolScheduler object message { def main(args: Array[String]) { @@ -16,13 +14,7 @@ object message { } val nActors = 500 val finalSum = n * nActors - //Scheduler.impl = new SingleThreadedScheduler - Debug.level = 3 - Scheduler.impl = { - val s = new ResizableThreadPoolScheduler(false) - s.start() - s - } + Scheduler.impl = new SingleThreadedScheduler def beh(next: Actor, sum: Int) { react { @@ -43,6 +35,6 @@ object message { val firstActor = actorChain(nActors, null) var i = n; while (i > 0) { firstActor ! 0; i -= 1 } - //Scheduler.shutdown() + Scheduler.shutdown() } } |