Packages

c

scala.collection.parallel

ThreadPoolTaskSupport

class ThreadPoolTaskSupport extends TaskSupport with AdaptiveWorkStealingThreadPoolTasks

A task support that uses a thread pool executor to schedule tasks.

Annotations
@deprecated
Deprecated

(Since version 2.11.0) use ForkJoinTaskSupport instead

Source
TaskSupport.scala
See also

scala.collection.parallel.TaskSupport for more information.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThreadPoolTaskSupport
  2. AdaptiveWorkStealingThreadPoolTasks
  3. AdaptiveWorkStealingTasks
  4. ThreadPoolTasks
  5. TaskSupport
  6. Tasks
  7. AnyRef
  8. Any
Implicitly
  1. by CollectionsHaveToParArray
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ThreadPoolTaskSupport(environment: ThreadPoolExecutor = ThreadPoolTasks.defaultThreadPool)

Type Members

  1. class WrappedTask[R, Tp] extends AdaptiveWorkStealingThreadPoolTasks.WrappedTask[R, Tp] with AdaptiveWorkStealingThreadPoolTasks.WrappedTask[R, Tp]

Value Members

  1. val environment: ThreadPoolExecutor

    The type of the environment is more specific in the implementations.

    The type of the environment is more specific in the implementations.

    Definition Classes
    ThreadPoolTaskSupportThreadPoolTasksTasks
  2. def execute[R, Tp](task: Task[R, Tp]): () ⇒ R

    Executes a task and returns a future.

    Executes a task and returns a future. Forwards an exception if some task threw it.

    Definition Classes
    ThreadPoolTasksTasks
  3. def executeAndWaitResult[R, Tp](task: Task[R, Tp]): R

    Executes a result task, waits for it to finish, then returns its result.

    Executes a result task, waits for it to finish, then returns its result. Forwards an exception if some task threw it.

    Definition Classes
    ThreadPoolTasksTasks
  4. def executor: ThreadPoolExecutor
    Definition Classes
    ThreadPoolTasks
  5. def newWrappedTask[R, Tp](b: Task[R, Tp]): WrappedTask[R, Tp]
  6. def parallelismLevel: Int

    Retrieves the parallelism level of the task execution environment.

    Retrieves the parallelism level of the task execution environment.

    Definition Classes
    ThreadPoolTasksTasks
  7. def queue: LinkedBlockingQueue[Runnable]
    Definition Classes
    ThreadPoolTasks
  8. def toParArray: ParArray[T]
    Implicit
    This member is added by an implicit conversion from ThreadPoolTaskSupport to CollectionsHaveToParArray[ThreadPoolTaskSupport, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (ThreadPoolTaskSupport) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray
  9. val totaltasks: Int
    Definition Classes
    ThreadPoolTasks
    Annotations
    @volatile()