From 334baf0e3b5aea862c443a7c78f4b54ccc1d1fb4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 12 Jun 2011 03:28:51 +0200 Subject: SingletonInstanceServerSocket: Fix setDaemon(true), give Thread a proper name --- src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/jogamp/common/util') diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java b/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java index e5d0ae1..fe95ea7 100644 --- a/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java +++ b/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java @@ -131,8 +131,8 @@ public class SingletonInstanceServerSocket extends SingletonInstance { public boolean start() { if(alive) return true; - Thread t = new Thread(this); - t.setDaemon(false); // don't keep the JVM running .. + Thread t = new Thread(this, "SingletonInstanceServerSocket: "+getName()); + t.setDaemon(true); // be a daemon, don't keep the JVM running synchronized (syncOnStartStop) { t.start(); -- cgit v1.2.3