| 614 | } |
| 615 | |
| 616 | void generic_scheduler::wait_until_empty() { |
| 617 | my_dummy_task->prefix().ref_count++; // prevents exit from local_wait_for_all when local work is done enforcing the stealing |
| 618 | while( my_arena->my_pool_state != arena::SNAPSHOT_EMPTY ) |
| 619 | local_wait_for_all(*my_dummy_task, NULL); |
| 620 | my_dummy_task->prefix().ref_count--; |
| 621 | } |
| 622 | |
| 623 | #endif /* __TBB_TASK_ARENA */ |
| 624 |