mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-19 23:48:50 +00:00
7042679: Phaser javadoc example does not compile
Reviewed-by: dl
This commit is contained in:
parent
ea48ecca85
commit
a4dd92fb42
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user