()
| 85 | } |
| 86 | |
| 87 | private final void run() { |
| 88 | running = true; |
| 89 | while (tasks != null) { |
| 90 | final ArrayList<Runnable> pending = tasks; |
| 91 | tasks = null; |
| 92 | for (int i = 0; i < pending.size(); i++) |
| 93 | pending.get(i).run(); |
| 94 | } |
| 95 | running = false; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Runs the recursive future using the default batch size. |