aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorathomas <[email protected]>2003-06-29 13:05:18 +0000
committerathomas <[email protected]>2003-06-29 13:05:18 +0000
commit4805d819e5b99ed2dd5ca4c7be757900c4d6b429 (patch)
tree4c71b76697b1546d33bad8fcb11685a405a14b79
parent5c05d00662d105c2eb7d917097848732ff884be1 (diff)
modified mutex to allow same thread to acquire lock multiple times. Will implement counting semantics for makeCurrent/freeCurrent symmetry
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@45 03bf7f67-59de-4072-a415-9a990d468a3f
-rw-r--r--src/java/net/java/games/joal/ALCImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/net/java/games/joal/ALCImpl.java b/src/java/net/java/games/joal/ALCImpl.java
index 6e7ccc5..fab3a56 100644
--- a/src/java/net/java/games/joal/ALCImpl.java
+++ b/src/java/net/java/games/joal/ALCImpl.java
@@ -201,7 +201,7 @@ final class ALCImpl implements ALC {
Thread owner = null;
public synchronized void acquire() {
boolean interrupted = false;
- while(owner != null) {
+ while(owner != null && owner != Thread.currentThread()) {
try {
wait();
} catch (InterruptedException e) {