| 486 | // When next is returned from task as a null pointer. |
| 487 | if (!future.valid()) { |
| 488 | BOLT_CHECK(!task_->isRunning() || !noMoreSplits_); |
| 489 | return false; |
| 490 | } |
| 491 | // Task is blocked for some reason. Wait and try again. |
| 492 | BOLT_CHECK_NULL(next); |
| 493 | future.wait(); |
| 494 | } |
| 495 | }; |
| 496 |