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

Method IsStatusLocked

be/src/runtime/io/disk-file.h:101–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 bool IsStatusLocked(const std::unique_lock<SpinLock>& lock, MemBlockStatus status) {
102 DCHECK(lock.mutex() == &mem_block_lock_ && lock.owns_lock());
103 return status_ == status;
104 }
105
106 void SetStatus(MemBlockStatus status) {
107 std::unique_lock<SpinLock> l(mem_block_lock_);

Callers 1

Calls 2

owns_lockMethod · 0.80
mutexMethod · 0.45

Tested by

no test coverage detected