diff options
author | Sven Gothel <[email protected]> | 2012-04-21 20:23:21 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-21 20:23:21 +0200 |
commit | 15d23e40badcf43a9af78de3bd699b7c74ec464a (patch) | |
tree | 76fcc3b0d0c6397c123c4dde67d0ccde9639faa7 /src/jogl/classes/com/jogamp | |
parent | 20e188b12a47a1724b1151aa3fc97d5cc52a2fcc (diff) |
Core/Animator: Force animator thread to be non-daemon.
Even thought we didn't set the thread to be a daemon,
if the [parent] thread instantiating the Animator the attribute would be passed along.
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/Animator.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/Animator.java b/src/jogl/classes/com/jogamp/opengl/util/Animator.java index 6d508f227..20ba27c16 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/Animator.java +++ b/src/jogl/classes/com/jogamp/opengl/util/Animator.java @@ -279,6 +279,11 @@ public class Animator extends AnimatorBase { } else { thread = new Thread(threadGroup, runnable, threadName); } + thread.setDaemon(false); // force to be non daemon, regardless of parent thread + if(DEBUG) { + final Thread ct = Thread.currentThread(); + System.err.println("Animator "+ct.getName()+"[daemon "+ct.isDaemon()+"]: starting "+thread.getName()+"[daemon "+thread.isDaemon()+"]"); + } thread.start(); finishLifecycleAction(waitForStartedCondition); return true; |