1.1 --- a/samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java Sat Jun 14 09:54:39 2008 +0200
1.2 +++ b/samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java Sat Jun 14 09:54:41 2008 +0200
1.3 @@ -11,6 +11,7 @@
1.4 this.pilot = pilot;
1.5 }
1.6
1.7 + // BEGIN: reentrant.merge.int
1.8 public int sumBigger(Collection<T> args) {
1.9 T pilotCopy = this.pilot;
1.10 int own = doCriticalSection(args, pilotCopy);
1.11 @@ -18,6 +19,7 @@
1.12 cnt.addAndGet(own);
1.13 return own;
1.14 }
1.15 + // END: reentrant.merge.int
1.16
1.17 private int doCriticalSection(Collection<T> args, T pilotCopy) {
1.18 int own = 0;