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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]