Name the loading thread and ask java to push its priority down.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Fri, 24 Aug 2012 00:21:33 +0000 (00:21 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Fri, 24 Aug 2012 00:21:33 +0000 (00:21 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@995 180e2498-e6e9-4542-8430-84ac67f01cd8

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

index 26cec70d20b202e36df44b0d4c818d8b3c33c928..bb2fae2b981957efa0323695f7f726f758b1451c 100644 (file)
@@ -171,6 +171,11 @@ public abstract class ComponentPresetDatabase extends Database<ComponentPreset>
         * Background thread for loading the presets. 
         */
        private class LoadingThread extends Thread {
+               
+               private LoadingThread() {
+                       this.setName("PresetLoadingThread");
+                       this.setPriority(MIN_PRIORITY);
+               }
                @Override
                public void run() {
                        load();