[concurrency-interest] Composing ForkJoin tasks

Gregg Wonderly gregg at cytetech.com
Thu Jul 23 12:01:50 EDT 2009


Doug Lea wrote:
> Gregg Wonderly wrote:
>> The only obvious thing to me is to just provide something like the 
>> following
>>
>> public static boolean inForkJoinPool() {
>>     return getPool() == null;
>> }

And I guess it would help if I actually typed what I meant.  The == should be != 
for correctness :-)

Gregg Wonderly

> 
> Good idea; thanks; done. This allows adding
> "(as may be determined using method {@link #inForkJoinPool})"
> to javadocs for FJ-only methods, which should forestall some confusion.
> 
> While I'm at it:
> 
> We are planning for openjdk integration of jsr166y stuff soon.
> So if any members of this list have been wanting to read through
> documentation or code and offer suggestions, now (over the next
> week) would be a great time to do it -- things are harder to
> change once committed into JDK.
> 
> 
> -Doug
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
> 
> 



More information about the Concurrency-interest mailing list