summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-20 11:51:27 -0700
committersg215889 <[email protected]>2009-07-20 11:51:27 -0700
commit1f65dedf406455731fb682404a01c96aa85d5ae1 (patch)
tree9b0080863005aef5c0c4850c4dddd242d6c60f89 /src/jogl
parentbb0ba9d06114fa482c1209e9ea6db2102ea4d2c5 (diff)
Using commont JAWTUtil for final locking
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/com/sun/opengl/impl/awt/AWTUtil.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/awt/AWTUtil.java b/src/jogl/classes/com/sun/opengl/impl/awt/AWTUtil.java
index 6170e4b29..11575ab65 100644
--- a/src/jogl/classes/com/sun/opengl/impl/awt/AWTUtil.java
+++ b/src/jogl/classes/com/sun/opengl/impl/awt/AWTUtil.java
@@ -83,17 +83,18 @@ public class AWTUtil {
try {
if( !((Boolean)isOGLPipelineActive.invoke(null, null)).booleanValue() ||
!((Boolean)isQueueFlusherThread.invoke(null, null)).booleanValue() ) {
- JAWT.getJAWT().Lock();
+ JAWTUtil.lockToolkit();
}
} catch (Exception e) { j2dOk=false; }
}
if(!j2dOk) {
- JAWT.getJAWT().Lock();
+ JAWTUtil.lockToolkit();
}
}
public static synchronized void unlockToolkit() {
if (lockedToolkit) {
+ lockedToolkit = false;
if (headlessMode) {
// Workaround for running (to some degree) in headless
// environments but still supporting rendering via pbuffers
@@ -105,14 +106,13 @@ public class AWTUtil {
try {
if( !((Boolean)isOGLPipelineActive.invoke(null, null)).booleanValue() ||
!((Boolean)isQueueFlusherThread.invoke(null, null)).booleanValue() ) {
- JAWT.getJAWT().Unlock();
+ JAWTUtil.unlockToolkit();
}
} catch (Exception e) { j2dOk=false; }
}
if(!j2dOk) {
- JAWT.getJAWT().Unlock();
+ JAWTUtil.unlockToolkit();
}
- lockedToolkit = false;
}
}