956 |
|
} |
957 |
|
|
958 |
|
/** |
959 |
< |
* Returns an estimate of the number tasks submitted to this pool |
960 |
< |
* that have not yet begun executing. This method takes time |
959 |
> |
* Returns an estimate of the number of tasks submitted to this |
960 |
> |
* pool that have not yet begun executing. This method takes time |
961 |
|
* proportional to the number of submissions. |
962 |
|
* |
963 |
|
* @return the number of queued submissions |
1742 |
|
* Method {@code isReleasable} must return {@code true} if |
1743 |
|
* blocking is not necessary. Method {@code block} blocks the |
1744 |
|
* current thread if necessary (perhaps internally invoking |
1745 |
< |
* {@code isReleasable} before actually blocking.). |
1745 |
> |
* {@code isReleasable} before actually blocking). |
1746 |
|
* |
1747 |
|
* <p>For example, here is a ManagedBlocker based on a |
1748 |
|
* ReentrantLock: |