Add thread names to the danger-timer thread

This commit is contained in:
Bill Kuker 2012-09-27 16:38:15 +00:00
parent bfe48265e6
commit 1733ae5398

View File

@ -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 {