216 |
|
static final class LTQasSQ<T> extends LinkedTransferQueue<T> { |
217 |
|
LTQasSQ() { super(); } |
218 |
|
public void put(T x) { |
219 |
< |
try { super.transfer(x); |
220 |
< |
} catch (InterruptedException ex) { throw new Error(); } |
219 |
> |
try { super.transfer(x); } |
220 |
> |
catch (InterruptedException ex) { throw new Error(ex); } |
221 |
|
} |
222 |
|
} |
223 |
|
|
228 |
|
if ((++calls & 1) == 0) |
229 |
|
super.put(x); |
230 |
|
else { |
231 |
< |
try { super.transfer(x); |
232 |
< |
} catch (InterruptedException ex) { |
233 |
< |
throw new Error(); |
234 |
< |
} |
231 |
> |
try { super.transfer(x); } |
232 |
> |
catch (InterruptedException ex) { throw new Error(ex); } |
233 |
|
} |
234 |
|
} |
235 |
|
} |