[jboss-cvs] JBossCache/src/org/jboss/cache/lock ...

Manik Surtani manik at jboss.org
Tue Jun 19 10:27:48 EDT 2007


  User: msurtani
  Date: 07/06/19 10:27:48

  Modified:    src/org/jboss/cache/lock  StripedLock.java
  Log:
  CCL thread safety
  
  Revision  Changes    Path
  1.3       +3 -3      JBossCache/src/org/jboss/cache/lock/StripedLock.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StripedLock.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/StripedLock.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- StripedLock.java	19 Jun 2007 13:05:18 -0000	1.2
  +++ StripedLock.java	19 Jun 2007 14:27:48 -0000	1.3
  @@ -62,13 +62,13 @@
       * Blocks until a lock is acquired.
       *
       * @param fqn       the Fqn to lock on
  -    * @param writeLock if true, a write (exclusive) lock is attempted, otherwise a read (shared) lock is used.
  +    * @param exclusive if true, a write (exclusive) lock is attempted, otherwise a read (shared) lock is used.
       */
  -   public void acquireLock(Fqn fqn, boolean writeLock)
  +   public void acquireLock(Fqn fqn, boolean exclusive)
      {
         ReentrantReadWriteLock lock = getLock(fqn);
   
  -      if (writeLock)
  +      if (exclusive)
            lock.writeLock().lock();
         else
            lock.readLock().lock();
  
  
  



More information about the jboss-cvs-commits mailing list