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

Method SimpleExecutor

cpp/src/arrow/util/future_test.cc:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107class SimpleExecutor {
108 public:
109 explicit SimpleExecutor(int nfutures)
110 : pool_(ThreadPool::Make(/*threads=*/4).ValueOrDie()) {
111 for (int i = 0; i < nfutures; ++i) {
112 futures_.push_back(Future<T>::Make());
113 }
114 }
115
116 std::vector<Future<T>>& futures() { return futures_; }
117

Callers

nothing calls this directly

Calls 3

ValueOrDieMethod · 0.80
push_backMethod · 0.80
MakeFunction · 0.70

Tested by

no test coverage detected