Package soot.jimple.infoflow.threading
Class DefaultExecutorFactory
java.lang.Object
soot.jimple.infoflow.threading.DefaultExecutorFactory
- All Implemented Interfaces:
IExecutorFactory
Default implementation of a factory for thread pool executors
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutor(int numThreads, boolean allowSetSemantics, InfoflowConfiguration config) Creates a new executor object for spawning worker threads
-
Constructor Details
-
DefaultExecutorFactory
public DefaultExecutorFactory()
-
-
Method Details
-
createExecutor
public InterruptableExecutor createExecutor(int numThreads, boolean allowSetSemantics, InfoflowConfiguration config) Description copied from interface:IExecutorFactoryCreates a new executor object for spawning worker threads- Specified by:
createExecutorin interfaceIExecutorFactory- Parameters:
numThreads- The number of threads to useallowSetSemantics- True if the executor is allowed to skip new tasks if the same task has already been scheduled before. False if the executor must schedule all tasks it is given.config- The configuration of the data flow solver- Returns:
- The generated executor
-