7042679: Phaser javadoc example does not compile

Reviewed-by: dl
This commit is contained in:
Chris Hegarty 2011-05-16 13:10:59 +01:00
parent ea48ecca85
commit a4dd92fb42

View File

@ -159,7 +159,7 @@ import java.util.concurrent.locks.LockSupport;
* void runTasks(List<Runnable> tasks) {
* final Phaser phaser = new Phaser(1); // "1" to register self
* // create and start threads
* for (Runnable task : tasks) {
* for (final Runnable task : tasks) {
* phaser.register();
* new Thread() {
* public void run() {