aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-28 23:29:02 +0100
committerSven Gothel <[email protected]>2010-11-28 23:29:02 +0100
commit8f79fbf000014f10f7c958ef03c656a4c383fc66 (patch)
treedf2b533c2601485addc03fca54872c11777911b1 /src
parentf1b6d82acda9c88bfeb8d1913b4d101539c45391 (diff)
Animator: Run as non daemon like FPSAnimator. This seems to be the users desired behavior and is more compliant with other APIs
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/Animator.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/Animator.java b/src/jogl/classes/com/jogamp/opengl/util/Animator.java
index 311b4141f..fed55aeef 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/Animator.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/Animator.java
@@ -51,6 +51,12 @@ import javax.media.opengl.GLException;
calls to <code>display()</code> are performed. After each drawable
has been redrawn, a brief pause is performed to avoid swamping the
CPU, unless {@link #setRunAsFastAsPossible} has been called. </P>
+
+ * <p>
+ * The Animator execution thread does not run as a daemon thread,
+ * so it is able to keep an application from terminating.<br>
+ * Call {@link #stop() } to terminate the animation and it's execution thread.
+ * </p>
*/
public class Animator extends AnimatorBase {
@@ -268,7 +274,6 @@ public class Animator extends AnimatorBase {
} else {
thread = new Thread(threadGroup, runnable, threadName);
}
- thread.setDaemon(true); // don't stop JVM from shutdown ..
thread.start();
finishLifecycleAction(waitForStartedCondition);
return true;