Author: doogie
Date: Sun Jun 26 02:50:17 2011
New Revision: 1139695
URL:
http://svn.apache.org/viewvc?rev=1139695&view=revLog:
OPTIMIZE: getExecutor now calls createThreadFactory, instead of creating
one itself.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java?rev=1139695&r1=1139694&r2=1139695&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java Sun Jun 26 02:50:17 2011
@@ -53,7 +53,7 @@ public final class ExecutionPool {
}
public static ScheduledExecutorService getExecutor(String namePrefix, int threadCount) {
- ExecutionPoolThreadFactory threadFactory = new ExecutionPoolThreadFactory(namePrefix);
+ ThreadFactory threadFactory = createThreadFactory(namePrefix);
ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(threadCount, threadFactory);
executor.prestartAllCoreThreads();
return executor;