juergen 2002/10/22 23:54:15
Modified: src/share/org/apache/slide/lock LockImpl.java
Log:
Fixed usage of shared locks.
(ralf)
Revision Changes Path
1.27 +9 -4 jakarta-slide/src/share/org/apache/slide/lock/LockImpl.java
Index: LockImpl.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/lock/LockImpl.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- LockImpl.java 25 Apr 2002 21:30:14 -0000 1.26
+++ LockImpl.java 23 Oct 2002 06:54:15 -0000 1.27
@@ -669,6 +669,11 @@
compatible = false;
}
+ // sharing the lock is OK
+ if (token1.isShared() && token2.isShared() && condition1 &&
!condition2) {
+ compatible = true;
+ }
+
// System.out.println();
// System.out.println("Token1 = " + token1);
// System.out.println(" .getTypeUri = " + token1.getTypeUri());
--
To unsubscribe, e-mail: <mailto:slide-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-dev-help@;jakarta.apache.org>