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

Method TryLock

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

Source from the content-addressed store, hash-verified

44}
45
46Mutex::Guard Mutex::TryLock() {
47 DCHECK_NE(impl_, nullptr);
48 if (impl_->mutex_.try_lock()) {
49 return Guard{this};
50 }
51 return Guard{};
52}
53
54Mutex::Guard Mutex::Lock() {
55 DCHECK_NE(impl_, nullptr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected