Home
last modified time | relevance | path

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

/art/libartbase/base/unix_file/
Dfd_file.cc153 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck), in FdFile()
168 guard_state_ = GuardState::kNoCheck; in FdFile()
173 if (kCheckSafeUsage && (guard_state_ < GuardState::kNoCheck)) { in Destroy()
174 if (guard_state_ < GuardState::kFlushed) { in Destroy()
177 if (guard_state_ < GuardState::kClosed) { in Destroy()
180 DCHECK_GE(guard_state_, GuardState::kClosed); in Destroy()
199 other.guard_state_ = GuardState::kClosed; in FdFile()
222 other.guard_state_ = GuardState::kClosed; in operator =()
234 guard_state_ = GuardState::kNoCheck; in Release()
258 guard_state_ = fd == -1 ? GuardState::kNoCheck : GuardState::kBase; in Reset()
[all …]
Dfd_file.h114 enum class GuardState { enum
132 void moveTo(GuardState target, GuardState warn_threshold, const char* warning);
137 void moveUp(GuardState target, const char* warning);
140 void resetGuard(GuardState new_state) { in resetGuard()
146 GuardState guard_state_ = GuardState::kClosed;
165 std::ostream& operator<<(std::ostream& os, const FdFile::GuardState& kind);