Name the loader thread and ask java to use min priority.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Fri, 24 Aug 2012 00:26:15 +0000 (00:26 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Fri, 24 Aug 2012 00:26:15 +0000 (00:26 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@997 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/database/ThrustCurveMotorSetDatabase.java

index 1aeb6cd4c70e456c0e9abaa433f506fc39514f0a..9b4c8b18d83bc8a90c285f7910889053a15f1530 100644 (file)
@@ -204,6 +204,10 @@ public abstract class ThrustCurveMotorSetDatabase implements MotorDatabase {
         * marks the database as loaded and notifies any blocked threads.
         */
        private class LoadingThread extends Thread {
+               private LoadingThread() {
+                       this.setName("MotorLoadingThread");
+                       this.setPriority(MIN_PRIORITY);
+               }
                @Override
                public void run() {
                        performMotorLoading();