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

Comparing jsr166/src/test/tck/LinkedTransferQueueTest.java (file contents):
Revision 1.1 by dl, Fri Jul 31 23:02:49 2009 UTC vs.
Revision 1.2 by jsr166, Fri Jul 31 23:37:31 2009 UTC

# Line 958 | Line 958 | public class LinkedTransferQueueTest ext
958      }
959  
960      /*
961 <     * transfer attempts to insert into the queue then wait until that
962 <     * object is removed via take or poll.
961 >     * transfer attempts to insert into the queue then wait until that
962 >     * object is removed via take or poll.
963       */
964      public void testTransfer2() {
965          final LinkedTransferQueue<Integer> q = new LinkedTransferQueue<Integer>();
# Line 985 | Line 985 | public class LinkedTransferQueueTest ext
985          }
986      }
987      /*
988 <     * transfer will attempt to transfer in fifo order and continue waiting if
989 <     * the element being transfered is not polled or taken
988 >     * transfer will attempt to transfer in fifo order and continue waiting if
989 >     * the element being transfered is not polled or taken
990       */
991  
992      public void testTransfer3() {
# Line 1003 | Line 1003 | public class LinkedTransferQueueTest ext
1003                      }
1004                  }
1005              }).start();
1006 <        Thread interruptedThread =
1006 >        Thread interruptedThread =
1007              new Thread(new Runnable() {
1008                      public void run() {
1009                          try {
# Line 1028 | Line 1028 | public class LinkedTransferQueueTest ext
1028  
1029      /**
1030       * transfer will wait as long as a poll or take occurs if one does occur
1031 <     * the waiting is finished and the thread that tries to poll/take
1031 >     * the waiting is finished and the thread that tries to poll/take
1032       * wins in retrieving the element
1033       */
1034      public void testTransfer4() {
# Line 1186 | Line 1186 | public class LinkedTransferQueueTest ext
1186      }
1187  
1188      /*
1189 <     * tryTransfer attempts to enqueue into the q and fails returning false not
1189 >     * tryTransfer attempts to enqueue into the q and fails returning false not
1190       * enqueueing and the successing poll is null
1191       */
1192      public void testTryTransfer7() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines