# HG changeset patch # User Jaroslav Tulach # Date 1213430081 -7200 # Node ID 2c1b90108e026ea9689106a17870d2dcd88b886d # Parent c479228609ea5957cdb07e287d94d753c0a50dee This code needs to be included in the PDF diff -r c479228609ea -r 2c1b90108e02 samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java --- a/samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java Sat Jun 14 09:54:39 2008 +0200 +++ b/samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java Sat Jun 14 09:54:41 2008 +0200 @@ -11,6 +11,7 @@ this.pilot = pilot; } + // BEGIN: reentrant.merge.int public int sumBigger(Collection args) { T pilotCopy = this.pilot; int own = doCriticalSection(args, pilotCopy); @@ -18,6 +19,7 @@ cnt.addAndGet(own); return own; } + // END: reentrant.merge.int private int doCriticalSection(Collection args, T pilotCopy) { int own = 0;