Home
last modified time | relevance | path

Searched refs:guard_state_ (Results 1 – 2 of 2) sorted by relevance

/art/runtime/base/unix_file/
Dfd_file.cc28 FdFile::FdFile() : guard_state_(GuardState::kClosed), fd_(-1), auto_close_(true) { in FdFile()
32 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck), in FdFile()
37 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck), in FdFile()
43 if (kCheckSafeUsage && (guard_state_ < GuardState::kNoCheck)) { in ~FdFile()
44 if (guard_state_ < GuardState::kFlushed) { in ~FdFile()
47 if (guard_state_ < GuardState::kClosed) { in ~FdFile()
50 CHECK_GE(guard_state_, GuardState::kClosed); in ~FdFile()
61 if (guard_state_ < GuardState::kNoCheck) { in moveTo()
62 if (warn_threshold < GuardState::kNoCheck && guard_state_ >= warn_threshold) { in moveTo()
65 guard_state_ = target; in moveTo()
[all …]
Dfd_file.h103 guard_state_ = new_state; in resetGuard()
107 GuardState guard_state_; variable