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

Method AddTester

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

UnstoppableFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected