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

Method Guard

cpp/src/arrow/util/mutex.cc:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37Mutex::Guard::Guard(Mutex* locked)
38 : locked_(locked, [](Mutex* locked) {
39#ifdef ARROW_ENABLE_THREADING
40 DCHECK(!locked->impl_->mutex_.try_lock());
41#endif
42 locked->impl_->mutex_.unlock();
43 }) {
44}
45
46Mutex::Guard Mutex::TryLock() {
47 DCHECK_NE(impl_, nullptr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected