avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosu...@apache.org
Subject cvs commit: avalon-excalibur/compatibility/src/test/org/apache/avalon/excalibur/concurrent/test ReadWriteLockTestCase.java
Date Thu, 03 Apr 2003 15:04:19 GMT
leosutic    2003/04/03 07:04:18

  Modified:    compatibility/src/test/org/apache/avalon/excalibur/concurrent/test
                        ReadWriteLockTestCase.java
  Log:
  Another try to eliminate the race condition.
  
  Revision  Changes    Path
  1.9       +5 -5      avalon-excalibur/compatibility/src/test/org/apache/avalon/excalibur/concurrent/test/ReadWriteLockTestCase.java
  
  Index: ReadWriteLockTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/compatibility/src/test/org/apache/avalon/excalibur/concurrent/test/ReadWriteLockTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ReadWriteLockTestCase.java	2 Apr 2003 09:25:26 -0000	1.8
  +++ ReadWriteLockTestCase.java	3 Apr 2003 15:04:17 -0000	1.9
  @@ -399,15 +399,15 @@
           assertTrue( !wla.hasSuccess() );
   
           //
  -        // ...and release the read lock.
  -        //
  -        lock.release();
  -
  -        //
           // Avoid race condition.
           //
           wla.join();
           assertTrue( !wla.hasSuccess() );
  +        
  +        //
  +        // ...and release the read lock.
  +        //
  +        lock.release();
           
           //
           // Right, we are in the condition described by Drissman.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message