Returns the status of the file. The caller should not hold the status lock.
| 286 | /// Returns the status of the file. |
| 287 | /// The caller should not hold the status lock. |
| 288 | DiskFileStatus GetFileStatus() { |
| 289 | std::unique_lock<SpinLock> l(status_lock_); |
| 290 | return GetFileStatusLocked(l); |
| 291 | } |
| 292 | |
| 293 | DiskFileStatus GetFileStatusLocked(const std::unique_lock<SpinLock>& status_lock) { |
| 294 | DCHECK(status_lock.mutex() == &status_lock_ && status_lock.owns_lock()); |
no outgoing calls