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

Method AddTester

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

Source from the content-addressed store, hash-verified

87class AddTester {
88 public:
89 explicit AddTester(int nadds, StopToken stop_token = StopToken::Unstoppable())
90 : nadds_(nadds), stop_token_(stop_token), xs_(nadds), ys_(nadds), outs_(nadds, -1) {
91 int x = 0, y = 0;
92 std::generate(xs_.begin(), xs_.end(), [&] {
93 ++x;
94 return x;
95 });
96 std::generate(ys_.begin(), ys_.end(), [&] {
97 y += 10;
98 return y;
99 });
100 }
101
102 AddTester(AddTester&&) = default;
103

Callers

nothing calls this directly

Calls 3

UnstoppableFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected