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

Function RunThreadsAndJoin

cpp/src/arrow/csv/column_decoder_test.cc:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68template <typename Func>
69void RunThreadsAndJoin(Func&& func, int iters) {
70 std::vector<ThreadJoiner> threads;
71 for (int i = 0; i < iters; i++) {
72 threads.emplace_back(std::make_shared<std::thread>([i, func] { func(i); }));
73 }
74}
75
76class ColumnDecoderTest : public ::testing::Test {
77 public:

Callers 3

TestThreadedMethod · 0.85
TestThreadedMethod · 0.85
TestThreadedMethod · 0.85

Calls 2

emplace_backMethod · 0.80
funcFunction · 0.50

Tested by

no test coverage detected