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) { |
326 |
|
} |
327 |
|
|
328 |
|
/** |
329 |
< |
* Increment the control state |
329 |
> |
* Increments the control state. |
330 |
|
* @return true if successful |
331 |
|
*/ |
332 |
|
protected final void incrementControlState() { |
334 |
|
} |
335 |
|
|
336 |
|
/** |
337 |
< |
* Decrement the control state |
337 |
> |
* Decrements the control state. |
338 |
|
* @return true if successful |
339 |
|
*/ |
340 |
|
protected final void decrementControlState() { |