summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/util
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-06-12 03:28:51 +0200
committerSven Gothel <[email protected]>2011-06-12 03:28:51 +0200
commit334baf0e3b5aea862c443a7c78f4b54ccc1d1fb4 (patch)
tree2e5392af49b0b34075e1c5cc3f06190d85588b0a /src/java/jogamp/common/util
parentaba5f79ed62128b74962c1efa15a3f921d66b3e0 (diff)
SingletonInstanceServerSocket: Fix setDaemon(true), give Thread a proper name
Diffstat (limited to 'src/java/jogamp/common/util')
-rw-r--r--src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java4
1 files changed, 2 insertions, 2 deletions
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();