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

Method SpawnTasks

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

Source from the content-addressed store, hash-verified

103 AddTester(AddTester&&) = default;
104
105 void SpawnTasks(ThreadPool* pool, AddTaskFunc add_func) {
106 for (int i = 0; i < nadds_; ++i) {
107 ASSERT_OK(pool->Spawn([this, add_func, i] { add_func(xs_[i], ys_[i], &outs_[i]); },
108 stop_token_));
109 }
110 }
111
112 void CheckResults() {
113 for (int i = 0; i < nadds_; ++i) {

Callers 3

DoSpawnAddsMethod · 0.80
DoSpawnAddsThreadedMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected