Commit 2ce91a38 authored by Norbraten, Terry's avatar Norbraten, Terry
Browse files

[Terry N.] format

parent af7c6710
......@@ -90,8 +90,7 @@ public class LoaderThreadPool {
DEFAULT_THREAD_COUNT = (num_processors == 1) ? 1 : (num_processors - 1);
// privileged code goes here, for example:
return Integer.getInteger(THREAD_COUNT_PROP,
DEFAULT_THREAD_COUNT);
return Integer.getInteger(THREAD_COUNT_PROP, DEFAULT_THREAD_COUNT);
});
int size = prop;
......@@ -100,11 +99,11 @@ public class LoaderThreadPool {
if (size != DEFAULT_THREAD_COUNT)
System.out.println(THREAD_COUNT_PROP + " set to: " + size);
loaders = new ContentLoader[size];
for(int i = size; --i >= 0;) {
for(int i = size; --i >= 0;)
loaders[i] = new ContentLoader(threadGroup, pending, inProgress);
}
}
//----------------------------------------------------------
......@@ -228,15 +227,15 @@ public class LoaderThreadPool {
*/
public void restartThreads() {
if (threadGroup.isDestroyed()) {
threadGroup = null;
threadPool = new LoaderThreadPool();
threadGroup = null;
threadPool = new LoaderThreadPool();
}
int size = loaders.length;
for(int i = size; --i >= 0;) {
if(!loaders[i].isAlive())
loaders[i] = new ContentLoader(threadGroup,
pending,
inProgress);
pending,
inProgress);
}
}
}
Supports Markdown
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