Re: ForkJoin refresh

Doug Lea via Concurrency-interest <[email protected]>
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <[email protected]>
On 2/6/20 10:56 AM, Peter Levart wrote:
> 
> If stray interrupts are not problematic, then what about the race that 
> causes a missing interrupt at the start of execution of the task:

Thanks; I agree. It suffices to just recheck status. (The outcome of
CancellationException will be reported without needing to throw it here.)

1436             public final boolean exec() {
1437                 Thread.interrupted();
1438                 runner = Thread.currentThread();
1439                 try {
+                      if (!isDone())
1440                     result = callable.call();
1441                     return true;


_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.