1087 |
|
private static int poolNumberSequence; |
1088 |
|
|
1089 |
|
/** |
1090 |
< |
* Return the next sequence number. We don't expect this to |
1091 |
< |
* ever contend so use simple builtin sync. |
1090 |
> |
* Returns the next sequence number. We don't expect this to |
1091 |
> |
* ever contend, so use simple builtin sync. |
1092 |
|
*/ |
1093 |
|
private static final synchronized int nextPoolId() { |
1094 |
|
return ++poolNumberSequence; |
1661 |
|
* park awaiting signal, else lingering to help scan and signal. |
1662 |
|
* |
1663 |
|
* * If a non-empty queue discovered or left as a hint, |
1664 |
< |
* help wake up other workers before return |
1664 |
> |
* help wake up other workers before return. |
1665 |
|
* |
1666 |
|
* @param w the worker (via its WorkQueue) |
1667 |
|
* @return a task or null if none found |