Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2019-04-29 20:06:22 +0000
committerThomas Watson2019-04-29 20:06:22 +0000
commite3a00565b51fbbe40209599873fbc2afe5e16923 (patch)
tree6e342ad032bd232adb4355bea9c0caefef392417
parentfe80750fdf01f8e906c38e3feac1a6a6db93e742 (diff)
downloadrt.equinox.framework-e3a00565b51fbbe40209599873fbc2afe5e16923.tar.gz
rt.equinox.framework-e3a00565b51fbbe40209599873fbc2afe5e16923.tar.xz
rt.equinox.framework-e3a00565b51fbbe40209599873fbc2afe5e16923.zip
Change-Id: I0dac3067720a64cc9e889b55e17211271c5b8fec Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java
index cd589286c..7eb0eb31f 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxContainerAdaptor.java
@@ -114,7 +114,7 @@ public class EquinoxContainerAdaptor extends ModuleContainerAdaptor {
if ((resolverThreadCnt < 1 && startLevelThreadCnt < 1) || resolverThreadCnt == startLevelThreadCnt) {
// use a single executor
this.resolverExecutor = new AtomicLazyInitializer<>();
- this.lazyResolverExecutorCreator = createLazyExecutorCreator(container.getConfiguration(), //
+ this.lazyResolverExecutorCreator = createLazyExecutorCreator( //
"Equinox executor thread - " + EquinoxContainerAdaptor.this.toString(), //$NON-NLS-1$
resolverThreadCnt);
this.startLevelExecutor = resolverExecutor;
@@ -122,18 +122,18 @@ public class EquinoxContainerAdaptor extends ModuleContainerAdaptor {
} else {
// use two different executors
this.resolverExecutor = new AtomicLazyInitializer<>();
- this.lazyResolverExecutorCreator = createLazyExecutorCreator(container.getConfiguration(), //
+ this.lazyResolverExecutorCreator = createLazyExecutorCreator( //
"Equinox resolver thread - " + EquinoxContainerAdaptor.this.toString(), //$NON-NLS-1$
resolverThreadCnt);
this.startLevelExecutor = new AtomicLazyInitializer<>();
- this.lazyStartLevelExecutorCreator = createLazyExecutorCreator(container.getConfiguration(), //
+ this.lazyStartLevelExecutorCreator = createLazyExecutorCreator(//
"Equinox start level thread - " + EquinoxContainerAdaptor.this.toString(), //$NON-NLS-1$
startLevelThreadCnt);
}
}
- private Callable<Executor> createLazyExecutorCreator(EquinoxConfiguration config, final String threadName, int threadCnt) {
+ private Callable<Executor> createLazyExecutorCreator(final String threadName, int threadCnt) {
// use the number of processors when configured value is <=0
final int maxThreads = threadCnt <= 0 ? Runtime.getRuntime().availableProcessors() : threadCnt;
return new Callable<Executor>() {

Back to the top