1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import java.util.*; |
35 |
|
try { |
36 |
|
int n = size; |
37 |
|
CyclicBarrier b = barrier; |
38 |
< |
for(int i = 0; i < n; ++i) |
38 |
> |
for (int i = 0; i < n; ++i) |
39 |
|
b.await(); |
40 |
|
} |
41 |
< |
catch(Exception ex) { |
41 |
> |
catch (Exception ex) { |
42 |
|
throw new Error(ex); |
43 |
|
} |
44 |
|
} |