> The flexible barrier functionality that was previously restricted
> to ForkJoinTasks (in class forkjoin.TaskBarrier) is being
> redone as class Phaser (targeted for j.u.c, not j.u.c.forkjoin), that
> can be applied in all kinds of tasks. For a snapshot of API, see
>
http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166ydocs/jsr166y/Phaser.html> Comments and suggestions are very welcome as always. The API is
> likely to change a bit as we scope out further uses, and also,
> hopefully, stumble upon some better method names.
This is great to see! I could definitely have used a Phaser now and again. I blogged this note btw:
http://tech.puredanger.com/2008/07/08/java7-phasers/One thing I mentioned there is that the necessity of subclassing a Phaser to implement a barrier action smells to me. Why not use an external Runnable/Task action ala CyclicBarrier instead?
Alex Miller
http://tech.puredanger.com_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@...
http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest