$search

edu::tum::cs::ias::knowrob::utils::ThreadPool Class Reference

List of all members.

Static Public Member Functions

static void executeInPool (List< Callable< Void >> threads)
static void init ()

Static Public Attributes

static ExecutorService pool

Detailed Description

Simple Thread execution pool to execute multiple callable objects at same time.

Author:
Stefan Profanter

Definition at line 23 of file ThreadPool.java.


Member Function Documentation

static void edu::tum::cs::ias::knowrob::utils::ThreadPool::executeInPool ( List< Callable< Void >>  threads  )  [inline, static]

Executes the given callable objects in a thread pool and returns when all threads have finished and all callable objects have been executed.

Parameters:
threads list of callable objects

Definition at line 36 of file ThreadPool.java.

static void edu::tum::cs::ias::knowrob::utils::ThreadPool::init (  )  [inline, static]

Initializes ExecutorService to use maximum ProcessorCount*25 threads at same time

Definition at line 61 of file ThreadPool.java.


Member Data Documentation

Main pool

Definition at line 27 of file ThreadPool.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


knowrob_common
Author(s): Moritz Tenorth
autogenerated on Tue Mar 5 12:14:08 2013