MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / wait_until_empty

Method wait_until_empty

benchmarks/tbb/arena.cpp:616–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void 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

Callers 1

internal_waitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected