From c96639da4df03ff8119294e9bb0b8972b1ab5742 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 3 Feb 2005 08:09:47 +0000 Subject: Fixed Issue 37: GLJPanel + Animator.stop() halts event dispatch thread Updated heuristic of when to block waiting for the animator to stop. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@205 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/Animator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net/java/games/jogl/Animator.java') diff --git a/src/net/java/games/jogl/Animator.java b/src/net/java/games/jogl/Animator.java index 3f5bfdeb2..4c50b9362 100644 --- a/src/net/java/games/jogl/Animator.java +++ b/src/net/java/games/jogl/Animator.java @@ -145,8 +145,7 @@ public class Animator { // dependencies on the Animator's internal thread. Currently we // use a couple of heuristics to determine whether we should do // the blocking wait(). - if ((Thread.currentThread() == thread) || - (SingleThreadedWorkaround.doWorkaround() && EventQueue.isDispatchThread())) { + if ((Thread.currentThread() == thread) || EventQueue.isDispatchThread()) { return; } while (shouldStop && thread != null) { -- cgit v1.2.3