Add thread names to the danger-timer thread
This commit is contained in:
parent
bfe48265e6
commit
1733ae5398
@ -116,6 +116,9 @@ public class OpenGLUtils {
|
|||||||
static void timedDangerZone(final String where, final long milliseconds){
|
static void timedDangerZone(final String where, final long milliseconds){
|
||||||
enterDangerZone(where + " - timed");
|
enterDangerZone(where + " - timed");
|
||||||
final Thread onShutdown = new Thread(){
|
final Thread onShutdown = new Thread(){
|
||||||
|
{
|
||||||
|
setName("GL Danger Shutdown Thread - " + where);
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public void run(){
|
public void run(){
|
||||||
exitDangerZone(where + " - shutdown hook");
|
exitDangerZone(where + " - shutdown hook");
|
||||||
@ -123,6 +126,9 @@ public class OpenGLUtils {
|
|||||||
};
|
};
|
||||||
Runtime.getRuntime().addShutdownHook(onShutdown);
|
Runtime.getRuntime().addShutdownHook(onShutdown);
|
||||||
new Thread(){
|
new Thread(){
|
||||||
|
{
|
||||||
|
setName("GL Danger Timer Thread - " + where);
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public void run(){
|
public void run(){
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user