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

Comparing jsr166/src/test/tck/LockSupportTest.java (file contents):
Revision 1.18 by jsr166, Tue Mar 15 19:47:07 2011 UTC vs.
Revision 1.19 by dl, Fri May 6 11:22:07 2011 UTC

# Line 34 | Line 34 | public class LockSupportTest extends JSR
34              }});
35  
36          threadStarted.await();
37 <        Thread.sleep(SHORT_DELAY_MS);
37 >        delay(SHORT_DELAY_MS);
38          LockSupport.unpark(t);
39          awaitTermination(t, MEDIUM_DELAY_MS);
40      }
# Line 55 | Line 55 | public class LockSupportTest extends JSR
55              }});
56  
57          threadStarted.await();
58 <        Thread.sleep(SHORT_DELAY_MS);
58 >        delay(SHORT_DELAY_MS);
59          LockSupport.unpark(t);
60          awaitTermination(t, MEDIUM_DELAY_MS);
61      }
# Line 75 | Line 75 | public class LockSupportTest extends JSR
75              }});
76  
77          threadStarted.await();
78 <        Thread.sleep(SHORT_DELAY_MS);
78 >        delay(SHORT_DELAY_MS);
79          LockSupport.unpark(t);
80          awaitTermination(t, MEDIUM_DELAY_MS);
81      }
# Line 163 | Line 163 | public class LockSupportTest extends JSR
163              }});
164  
165          threadStarted.await();
166 <        Thread.sleep(SHORT_DELAY_MS);
166 >        delay(SHORT_DELAY_MS);
167          t.interrupt();
168          awaitTermination(t, MEDIUM_DELAY_MS);
169      }
# Line 188 | Line 188 | public class LockSupportTest extends JSR
188              }});
189  
190          threadStarted.await();
191 <        Thread.sleep(SHORT_DELAY_MS);
191 >        delay(SHORT_DELAY_MS);
192          t.interrupt();
193          awaitTermination(t, MEDIUM_DELAY_MS);
194      }
# Line 212 | Line 212 | public class LockSupportTest extends JSR
212              }});
213  
214          threadStarted.await();
215 <        Thread.sleep(SHORT_DELAY_MS);
215 >        delay(SHORT_DELAY_MS);
216          t.interrupt();
217          awaitTermination(t, MEDIUM_DELAY_MS);
218      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines