636 |
|
} |
637 |
|
} |
638 |
|
} |
639 |
< |
return nonEmpty? min : 0; |
639 |
> |
return nonEmpty ? min : 0; |
640 |
|
} |
641 |
|
|
642 |
|
/** |
752 |
|
|
753 |
|
static final long INTERRUPTED = -1L; // timeout vs interrupt sentinel |
754 |
|
|
755 |
< |
/** |
755 |
> |
/** |
756 |
|
* Initial/Minimum buffer capacity. Must be a power of two, at least 2. |
757 |
|
*/ |
758 |
|
static final int MINCAP = 8; |
774 |
|
*/ |
775 |
|
final int estimateLag() { |
776 |
|
int n; |
777 |
< |
return (ctl == DISABLED)? -1 : ((n = tail - head) > 0) ? n : 0; |
777 |
> |
return (ctl == DISABLED) ? -1 : ((n = tail - head) > 0) ? n : 0; |
778 |
|
} |
779 |
|
|
780 |
|
/** |