253 |
|
static final class LTQasSQ<T> extends LinkedTransferQueue<T> { |
254 |
|
LTQasSQ() { super(); } |
255 |
|
public void put(T x) { |
256 |
< |
try { super.transfer(x); |
257 |
< |
} catch (InterruptedException ex) { throw new Error(); } |
256 |
> |
try { super.transfer(x); } |
257 |
> |
catch (InterruptedException ex) { throw new Error(ex); } |
258 |
|
} |
259 |
|
} |
260 |
|
|
265 |
|
if ((++calls & 1) == 0) |
266 |
|
super.put(x); |
267 |
|
else { |
268 |
< |
try { super.transfer(x); |
269 |
< |
} catch (InterruptedException ex) { |
270 |
< |
throw new Error(); |
271 |
< |
} |
268 |
> |
try { super.transfer(x); } |
269 |
> |
catch (InterruptedException ex) { throw new Error(ex); } |
270 |
|
} |
271 |
|
} |
272 |
|
} |