X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fstartup%2FConcurrentLoadingThrustCurveMotorSetDatabase.java;h=2eba9b426206018e08596b273a8f633f70b731b6;hb=e21b77118f72c9c82ef379b3d044f042371f6d04;hp=c52d72e19e09255e206ed7648f854f2c2ae3248e;hpb=bbdd01e3f680d5c22b6dae29220d191fd8fc7163;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/startup/ConcurrentLoadingThrustCurveMotorSetDatabase.java b/core/src/net/sf/openrocket/startup/ConcurrentLoadingThrustCurveMotorSetDatabase.java index c52d72e1..2eba9b42 100644 --- a/core/src/net/sf/openrocket/startup/ConcurrentLoadingThrustCurveMotorSetDatabase.java +++ b/core/src/net/sf/openrocket/startup/ConcurrentLoadingThrustCurveMotorSetDatabase.java @@ -149,7 +149,7 @@ public class ConcurrentLoadingThrustCurveMotorSetDatabase extends ThrustCurveMot } }); - loaderPool = new ThreadPoolExecutor(25,25, 2, TimeUnit.SECONDS, + loaderPool = new ThreadPoolExecutor(10,10, 2, TimeUnit.SECONDS, new LinkedBlockingQueue(), new ThreadFactory() { int threadCount = 0; @@ -178,9 +178,9 @@ public class ConcurrentLoadingThrustCurveMotorSetDatabase extends ThrustCurveMot private void waitForFinish() throws InterruptedException { try { loaderPool.shutdown(); - loaderPool.awaitTermination(30, TimeUnit.SECONDS); + loaderPool.awaitTermination(90, TimeUnit.SECONDS); writerThread.shutdown(); - writerThread.awaitTermination(30, TimeUnit.SECONDS); + writerThread.awaitTermination(90, TimeUnit.SECONDS); } finally { iterator.close();