Commit fffe14e6 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Small code cleanup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6206 b35dd754-fafc-0310-a699-88a17e54d16e
parent fec4e0ef
...@@ -49,7 +49,7 @@ public class TaskEngine { ...@@ -49,7 +49,7 @@ public class TaskEngine {
* Constructs a new task engine. * Constructs a new task engine.
*/ */
private TaskEngine() { private TaskEngine() {
timer = new Timer("timer-enterprise", true); timer = new Timer("timer-wildfire", true);
executor = Executors.newCachedThreadPool(new ThreadFactory() { executor = Executors.newCachedThreadPool(new ThreadFactory() {
final AtomicInteger threadNumber = new AtomicInteger(1); final AtomicInteger threadNumber = new AtomicInteger(1);
...@@ -57,7 +57,7 @@ public class TaskEngine { ...@@ -57,7 +57,7 @@ public class TaskEngine {
public Thread newThread(Runnable runnable) { public Thread newThread(Runnable runnable) {
// Use our own naming scheme for the threads. // Use our own naming scheme for the threads.
Thread thread = new Thread(Thread.currentThread().getThreadGroup(), runnable, Thread thread = new Thread(Thread.currentThread().getThreadGroup(), runnable,
"pool-enterprise" + threadNumber.getAndIncrement(), 0); "pool-wildfire" + threadNumber.getAndIncrement(), 0);
// Make workers daemon threads. // Make workers daemon threads.
thread.setDaemon(true); thread.setDaemon(true);
if (thread.getPriority() != Thread.NORM_PRIORITY) { if (thread.getPriority() != Thread.NORM_PRIORITY) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment