ozeigermann    2004/05/05 09:03:06

  Modified:    src/share/org/apache/slide/util/locking/impl
                        GenericLock.java
  Log:
  Added method to get owner of lock
  
  Revision  Changes    Path
  1.6       +9 -3      
jakarta-slide/src/share/org/apache/slide/util/locking/impl/GenericLock.java
  
  Index: GenericLock.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/util/locking/impl/GenericLock.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- GenericLock.java  11 Feb 2004 11:30:20 -0000      1.5
  +++ GenericLock.java  5 May 2004 16:03:06 -0000       1.6
  @@ -234,6 +234,12 @@
           return maxLockLevel;
       }
   
  +    public Object getOwner() {
  +        LockOwner owner = getMaxLevelOwner();
  +        if (owner == null) return null;
  +        return owner.ownerId;
  +    }
  +
       protected synchronized LockOwner getMaxLevelOwner() {
           return getMaxLevelOwnerNotMe(null);
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to