From 1733ae5398e7a3ed7c815132817b0cbb4523383e Mon Sep 17 00:00:00 2001 From: Bill Kuker Date: Thu, 27 Sep 2012 16:38:15 +0000 Subject: [PATCH] Add thread names to the danger-timer thread --- core/src/net/sf/openrocket/gui/figure3d/OpenGLUtils.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/net/sf/openrocket/gui/figure3d/OpenGLUtils.java b/core/src/net/sf/openrocket/gui/figure3d/OpenGLUtils.java index c5ad8d4de..221366c73 100644 --- a/core/src/net/sf/openrocket/gui/figure3d/OpenGLUtils.java +++ b/core/src/net/sf/openrocket/gui/figure3d/OpenGLUtils.java @@ -116,6 +116,9 @@ public class OpenGLUtils { static void timedDangerZone(final String where, final long milliseconds){ enterDangerZone(where + " - timed"); final Thread onShutdown = new Thread(){ + { + setName("GL Danger Shutdown Thread - " + where); + } @Override public void run(){ exitDangerZone(where + " - shutdown hook"); @@ -123,6 +126,9 @@ public class OpenGLUtils { }; Runtime.getRuntime().addShutdownHook(onShutdown); new Thread(){ + { + setName("GL Danger Timer Thread - " + where); + } @Override public void run(){ try {