ozeigermann 2004/12/17 04:33:44
Modified: transaction/src/java/org/apache/commons/transaction/util
CounterBarrier.java
Log:
Added a bit more of an explanation.
Revision Changes Path
1.2 +7 -4
jakarta-commons/transaction/src/java/org/apache/commons/transaction/util/CounterBarrier.java
Index: CounterBarrier.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/transaction/src/java/org/apache/commons/transaction/util/CounterBarrier.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CounterBarrier.java 17 Dec 2004 00:11:38 -0000 1.1
+++ CounterBarrier.java 17 Dec 2004 12:33:44 -0000 1.2
@@ -25,6 +25,9 @@
/**
* Simple counter barrier to make a sequence of calls from different threads
deterministic.
+ * This is very useful for testing where you want to have a contious flow
throughout
+ * different threads. The idea is to have an ordered sequence of numbers
where n can not be executed before
+ * n-1 has not been.
*
* @version $Revision$
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]