ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/RLIBar.java
(Generate patch)

Comparing jsr166/src/test/loops/RLIBar.java (file contents):
Revision 1.5 by jsr166, Wed Sep 1 07:47:27 2010 UTC vs.
Revision 1.8 by jsr166, Tue Mar 15 19:47:05 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6   // Adapted from code that was in turn
7   // Derived from SocketPerformanceTest.java - BugID: 4763450
# Line 29 | Line 29 | public class RLIBar {
29      static int HoldPop;
30      static int HoldLimit;
31  
32 <    static private boolean HoldCheck() {
32 >    private static boolean HoldCheck() {
33          try {
34              HoldQ.lock();
35              try {
# Line 221 | Line 221 | public class RLIBar {
221              if (false && j == 2) {
222                  System.out.print("Hold activated ...");
223                  HoldQ.lock();
224 <                try  {
224 >                try {
225                      Hold = true;
226                      while (Hold) HoldQCond.await();
227                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines