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

Method Pause

cpp/src/arrow/util/thread_pool.cc:230–238  ·  view source on GitHub ↗

ARROW_ENABLE_THREADING

Source from the content-addressed store, hash-verified

228
229#endif // ARROW_ENABLE_THREADING
230void SerialExecutor::Pause() {
231 // Same comment as SpawnReal above
232 auto state = state_;
233 {
234 std::lock_guard<std::mutex> lk(state->mutex);
235 state->paused = true;
236 }
237 state->wait_for_tasks.notify_one();
238}
239
240bool SerialExecutor::IsFinished() {
241 std::lock_guard<std::mutex> lk(state_->mutex);

Callers 1

NextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected