Home
last modified time | relevance | path

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

/art/runtime/base/unix_file/
Dfd_file.cc39 : guard_state_(GuardState::kClosed), fd_(-1), auto_close_(true), read_only_mode_(false) { in FdFile()
43 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck), in FdFile()
52 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck), in FdFile()
60 guard_state_ = GuardState::kNoCheck; in FdFile()
65 if (kCheckSafeUsage && (guard_state_ < GuardState::kNoCheck)) { in Destroy()
66 if (guard_state_ < GuardState::kFlushed) { in Destroy()
69 if (guard_state_ < GuardState::kClosed) { in Destroy()
72 DCHECK_GE(guard_state_, GuardState::kClosed); in Destroy()
104 void FdFile::moveTo(GuardState target, GuardState warn_threshold, const char* warning) { in moveTo()
106 if (guard_state_ < GuardState::kNoCheck) { in moveTo()
[all …]
Dfd_file.h66 guard_state_ = GuardState::kNoCheck; in Release()
77 guard_state_ = fd == -1 ? GuardState::kNoCheck : GuardState::kBase; in Reset()
79 guard_state_ = GuardState::kNoCheck; in Reset()
139 enum class GuardState { enum
157 void moveTo(GuardState target, GuardState warn_threshold, const char* warning);
162 void moveUp(GuardState target, const char* warning);
165 void resetGuard(GuardState new_state) { in resetGuard()
171 GuardState guard_state_;
191 std::ostream& operator<<(std::ostream& os, const FdFile::GuardState& kind);