| 109 | } |
| 110 | |
| 111 | void SetStatusLocked(const std::unique_lock<SpinLock>& lock, MemBlockStatus status) { |
| 112 | DCHECK(lock.mutex() == &mem_block_lock_ && lock.owns_lock()); |
| 113 | SetInternalStatus(status); |
| 114 | } |
| 115 | |
| 116 | /// Return the lock of the memory block. |
| 117 | SpinLock* GetLock() { return &mem_block_lock_; } |
no test coverage detected