202 |
|
/** |
203 |
|
* Implements AQS base acquire to succeed if Done/cancelled |
204 |
|
*/ |
205 |
< |
protected int tryAcquireSharedState(boolean b, int ignore) { |
205 |
> |
protected int tryAcquireShared(boolean b, int ignore) { |
206 |
|
return doIsDone()? 1 : -1; |
207 |
|
} |
208 |
|
|
210 |
|
* Implements AQS base release to always signal after setting |
211 |
|
* final done status by nulling runner thread. |
212 |
|
*/ |
213 |
< |
protected boolean releaseSharedState(int ignore) { |
213 |
> |
protected boolean tryReleaseShared(int ignore) { |
214 |
|
runner = null; |
215 |
|
return true; |
216 |
|
} |