Well i found something strange... Is that good enough?
The shutdownnow() method doesn't appear to call interrupt only once.
I had to make this method:
private RETURNSTATE unInterruptibleTake() {
while (true) {
try {
Thread.currentThread().interrupt();
return channel.take();
} catch (InterruptedException ex1) {
//This should be cooperative?
}
}
}
To make a SynchronousQueue inside a ThreadPoolExecutor, synchronizing
with another thread not flip out (not quite sure yet).
On Wed, Oct 21, 2009 at 9:35 PM, Tim Peierls <
tim@...> wrote:
> On Wed, Oct 21, 2009 at 4:30 PM, Paulo Levi <
i30817@...> wrote:
>>
>> That would be much appreciated.
>
> Actually, I meant that it should be easy for *you* to write them. :-) But
> if you come up with something you think is generally useful, please share it
> with us.
> --tim
_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@...
http://cs.oswego.edu/mailman/listinfo/concurrency-interest