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

/art/runtime/base/unix_file/
H A Dfd_file.cc39 : guard_state_(GuardState::kClosed), fd_(-1), auto_close_(true), read_only_mode_(false) {
43 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck),
52 : guard_state_(check_usage ? GuardState::kBase : GuardState::kNoCheck),
57 if (kCheckSafeUsage && (guard_state_ < GuardState::kNoCheck)) {
58 if (guard_state_ < GuardState::kFlushed) {
61 if (guard_state_ < GuardState::kClosed) {
64 CHECK_GE(guard_state_, GuardState::kClosed);
73 void FdFile::moveTo(GuardState targe
[all...]
H A Dfd_file.h93 enum class GuardState { class in class:unix_file::FdFile
106 void moveTo(GuardState target, GuardState warn_threshold, const char* warning);
111 void moveUp(GuardState target, const char* warning);
114 void resetGuard(GuardState new_state) {
120 GuardState guard_state_;
134 std::ostream& operator<<(std::ostream& os, const FdFile::GuardState& kind);

Completed in 63 milliseconds