ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Exchanger.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/Exchanger.java (file contents):
Revision 1.61 by jsr166, Sun Nov 25 21:34:39 2012 UTC vs.
Revision 1.62 by jsr166, Sun Nov 25 21:48:00 2012 UTC

# Line 83 | Line 83 | public class Exchanger<V> {
83       *   if (slot is empty) {                       // offer
84       *     place item in a Node;
85       *     if (can CAS slot from empty to node) {
86 <     *        wait for release;
87 <     *        return matching item in node;
86 >     *       wait for release;
87 >     *       return matching item in node;
88       *     }
89       *   }
90       *   else if (can CAS slot from node to empty) { // release

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines