aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/jogamp/java3d/MasterControl.java3
-rw-r--r--src/main/java/org/jogamp/java3d/MasterControlThread.java1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/jogamp/java3d/MasterControl.java b/src/main/java/org/jogamp/java3d/MasterControl.java
index d5a9684..b60710c 100644
--- a/src/main/java/org/jogamp/java3d/MasterControl.java
+++ b/src/main/java/org/jogamp/java3d/MasterControl.java
@@ -1686,6 +1686,7 @@ private static String getProperty(final String prop) {
synchronized (rootThreadGroup) {
s.updateThread = new StructureUpdateThread(
rootThreadGroup, s, s.threadType);
+ s.updateThread.setDaemon(true);
s.updateThread.setPriority(threadPriority);
}
return null;
@@ -2010,6 +2011,7 @@ private static String getProperty(final String prop) {
public Object run() {
synchronized (rootThreadGroup) {
timerThread = new TimerThread(rootThreadGroup);
+ timerThread.setDaemon(true);
timerThread.setPriority(threadPriority);
}
return null;
@@ -2024,6 +2026,7 @@ private static String getProperty(final String prop) {
public Object run() {
synchronized (rootThreadGroup) {
notificationThread = new NotificationThread(rootThreadGroup);
+ notificationThread.setDaemon(true);
notificationThread.setPriority(threadPriority);
}
return null;
diff --git a/src/main/java/org/jogamp/java3d/MasterControlThread.java b/src/main/java/org/jogamp/java3d/MasterControlThread.java
index a27ce7f..914e506 100644
--- a/src/main/java/org/jogamp/java3d/MasterControlThread.java
+++ b/src/main/java/org/jogamp/java3d/MasterControlThread.java
@@ -50,6 +50,7 @@ class MasterControlThread extends Thread {
MasterControlThread(ThreadGroup threadGroup) {
super(threadGroup, "");
+ setDaemon(true);
setName("J3D-MasterControl-" + getInstanceNum());
VirtualUniverse.mc.createMCThreads();
this.start();