diff options
author | Kenneth Russel <[email protected]> | 2005-04-24 22:59:51 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-04-24 22:59:51 +0000 |
commit | 492f117fd3f76c7a5778ca2a07c6f5803242b8e0 (patch) | |
tree | bebfe51a2cb8fc36613cdd8ad6caf04b88d1ef47 /src/net/java/games/jogl/impl/SingleThreadedWorkaround.java | |
parent | c35019b5256ca33fb642d54608101ab7292f3c60 (diff) |
Merged with current JOGL trunk (by using -r HEAD)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@262 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/SingleThreadedWorkaround.java')
-rwxr-xr-x | src/net/java/games/jogl/impl/SingleThreadedWorkaround.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java index 7b9fa46c4..ff79b5c6e 100755 --- a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java +++ b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java @@ -85,6 +85,17 @@ public class SingleThreadedWorkaround { }); } + /** Public method for users to disable the single-threaded + workaround in application code. Should perhaps eventually + promote this method to the public API. */ + public static void disableWorkaround() { + systemPropertySpecified = true; + singleThreadedWorkaround = false; + if (Debug.verbose()) { + System.err.println("Application forced disabling of single-threaded workaround of dispatching display() on event thread"); + } + } + public static void shouldDoWorkaround() { if (!systemPropertySpecified) { singleThreadedWorkaround = true; |