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

Comparing jsr166/src/test/loops/LinkedAsyncAction.java (file contents):
Revision 1.1 by dl, Sun Sep 19 12:55:37 2010 UTC vs.
Revision 1.4 by jsr166, Sat Jan 28 04:40:12 2012 UTC

# Line 141 | Line 141 | public abstract class LinkedAsyncAction
141       * Overridable callback action triggered by <tt>complete</tt>.  Upon
142       * invocation, all subtasks have completed.  After return, this
143       * task <tt>isDone</tt> and is joinable by other tasks. The
144 <     * default version of this method does nothing. But it may may be
144 >     * default version of this method does nothing. But it may be
145       * overridden in subclasses to perform some action when this task
146       * is about to complete.
147       */
# Line 312 | Line 312 | public abstract class LinkedAsyncAction
312       * @param update the new value
313       * @return true if successful
314       */
315 <    protected final boolean compareAndSetControlState(int expect,
315 >    protected final boolean compareAndSetControlState(int expect,
316                                                        int update) {
317          return controlStateUpdater.compareAndSet(this, expect, update);
318      }
319  
320      /**
321 <     * Sets the control state to the given value,
321 >     * Sets the control state to the given value.
322       * @param value the new value
323       */
324      protected final void setControlState(int value) {
# Line 326 | Line 326 | public abstract class LinkedAsyncAction
326      }
327  
328      /**
329 <     * Increment the control state
329 >     * Increments the control state.
330       * @return true if successful
331       */
332      protected final void incrementControlState() {
# Line 334 | Line 334 | public abstract class LinkedAsyncAction
334      }
335  
336      /**
337 <     * Decrement the control state
337 >     * Decrements the control state.
338       * @return true if successful
339       */
340      protected final void decrementControlState() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines