243 |
|
static final class LTQasSQ<T> extends LinkedTransferQueue<T> { |
244 |
|
LTQasSQ() { super(); } |
245 |
|
public void put(T x) { |
246 |
< |
try { super.transfer(x); |
247 |
< |
} catch (InterruptedException ex) { throw new Error(); } |
246 |
> |
try { super.transfer(x); } |
247 |
> |
catch (InterruptedException ex) { throw new Error(ex); } |
248 |
|
} |
249 |
|
} |
250 |
|
|
255 |
|
if ((++calls & 1) == 0) |
256 |
|
super.put(x); |
257 |
|
else { |
258 |
< |
try { super.transfer(x); |
259 |
< |
} catch (InterruptedException ex) { |
260 |
< |
throw new Error(); |
261 |
< |
} |
258 |
> |
try { super.transfer(x); } |
259 |
> |
catch (InterruptedException ex) { throw new Error(ex); } |
260 |
|
} |
261 |
|
} |
262 |
|
} |