You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/05/05 18:03:06 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/util/locking/impl GenericLock.java

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: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org