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

Method AddTester

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

UnstoppableFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected