MCPcopy Create free account
hub / github.com/apache/arrow / DoSpawnAdds

Method DoSpawnAdds

cpp/src/arrow/util/thread_pool_test.cc:500–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498 }
499
500 void DoSpawnAdds(ThreadPool* pool, int nadds, AddTaskFunc add_func,
501 StopToken stop_token = StopToken::Unstoppable(),
502 StopSource* stop_source = nullptr) {
503 AddTester add_tester(nadds, stop_token);
504 add_tester.SpawnTasks(pool, add_func);
505 if (stop_source) {
506 stop_source->RequestStop();
507 }
508 ASSERT_OK(pool->Shutdown());
509 if (stop_source) {
510 add_tester.CheckNotAllComputed();
511 } else {
512 add_tester.CheckResults();
513 }
514 }
515
516 void SpawnAdds(ThreadPool* pool, int nadds, AddTaskFunc add_func,
517 StopToken stop_token = StopToken::Unstoppable()) {

Callers

nothing calls this directly

Calls 6

UnstoppableFunction · 0.85
SpawnTasksMethod · 0.80
RequestStopMethod · 0.80
CheckNotAllComputedMethod · 0.80
ShutdownMethod · 0.45
CheckResultsMethod · 0.45

Tested by

no test coverage detected