MCPcopy Create free account
hub / github.com/apache/impala / AddCancellationCV

Method AddCancellationCV

be/src/runtime/runtime-state.cc:280–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void RuntimeState::AddCancellationCV(mutex* mutex, ConditionVariable* cv) {
281 lock_guard<SpinLock> l(cancellation_cvs_lock_);
282 for (pair<std::mutex*, ConditionVariable*>& entry : cancellation_cvs_) {
283 // Don't add if already present.
284 if (mutex == entry.first && cv == entry.second) return;
285 }
286 cancellation_cvs_.push_back(make_pair(mutex, cv));
287}
288
289void RuntimeState::AddBarrierToCancel(CyclicBarrier* cb) {
290 lock_guard<SpinLock> l(cancellation_cvs_lock_);

Callers 3

AddCancellationHookMethod · 0.80
WaitForInitialBuildMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected