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

Comparing jsr166/src/test/tck/AbstractQueuedLongSynchronizerTest.java (file contents):
Revision 1.19 by jsr166, Mon Oct 11 06:36:20 2010 UTC vs.
Revision 1.22 by jsr166, Tue Mar 15 19:47:06 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   * Other contributors include Andrew Wright, Jeffrey Hayes,
6   * Pat Fisher, Mike Judd.
7   */
# Line 61 | Line 61 | public class AbstractQueuedLongSynchroni
61          public boolean isSignalled() { return getState() != 0; }
62  
63          public long tryAcquireShared(long ignore) {
64 <            return isSignalled()? 1 : -1;
64 >            return isSignalled() ? 1 : -1;
65          }
66  
67          public boolean tryReleaseShared(long ignore) {
# Line 953 | Line 953 | public class AbstractQueuedLongSynchroni
953      /**
954       * acquireSharedTimed returns after release
955       */
956 <    public void testAquireSharedTimed() throws InterruptedException {
956 >    public void testAcquireSharedTimed() throws InterruptedException {
957          final BooleanLatch l = new BooleanLatch();
958  
959          Thread t = new Thread(new CheckedRunnable() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines