• Home
  • Raw
  • Download

Lines Matching refs:FuseBridgeState

33 enum class FuseBridgeState { kWaitToReadEither, kWaitToReadProxy, kWaitToWriteProxy, kClosing };  enum
40 void GetObservedEvents(FuseBridgeState state, int* device_events, int* proxy_events) { in GetObservedEvents()
42 case FuseBridgeState::kWaitToReadEither: in GetObservedEvents()
46 case FuseBridgeState::kWaitToReadProxy: in GetObservedEvents()
50 case FuseBridgeState::kWaitToWriteProxy: in GetObservedEvents()
54 case FuseBridgeState::kClosing: in GetObservedEvents()
74 state_(FuseBridgeState::kWaitToReadEither), in FuseBridgeEntry()
75 last_state_(FuseBridgeState::kWaitToReadEither), in FuseBridgeEntry()
99 state_ = FuseBridgeState::kClosing; in Transfer()
104 case FuseBridgeState::kWaitToReadEither: in Transfer()
112 case FuseBridgeState::kWaitToReadProxy: in Transfer()
117 case FuseBridgeState::kWaitToWriteProxy: in Transfer()
122 case FuseBridgeState::kClosing: in Transfer()
127 bool IsClosing() const { return state_ == FuseBridgeState::kClosing; } in IsClosing()
134 FuseBridgeState ReadFromProxy() { in ReadFromProxy()
139 return FuseBridgeState::kClosing; in ReadFromProxy()
141 return FuseBridgeState::kWaitToReadProxy; in ReadFromProxy()
146 return FuseBridgeState::kClosing; in ReadFromProxy()
166 return FuseBridgeState::kClosing; in ReadFromProxy()
173 return FuseBridgeState::kWaitToReadEither; in ReadFromProxy()
176 FuseBridgeState ReadFromDevice(FuseBridgeLoopCallback* callback) { in ReadFromDevice()
179 return FuseBridgeState::kClosing; in ReadFromDevice()
186 return FuseBridgeState::kWaitToReadEither; in ReadFromDevice()
191 return FuseBridgeState::kWaitToReadEither; in ReadFromDevice()
216 return FuseBridgeState::kClosing; in ReadFromDevice()
223 return FuseBridgeState::kWaitToReadEither; in ReadFromDevice()
226 FuseBridgeState WriteToProxy() { in WriteToProxy()
229 return FuseBridgeState::kWaitToReadEither; in WriteToProxy()
236 return FuseBridgeState::kClosing; in WriteToProxy()
238 return FuseBridgeState::kWaitToWriteProxy; in WriteToProxy()
246 FuseBridgeState state_;
247 FuseBridgeState last_state_;
270 bridge->state_ != FuseBridgeState::kClosing ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, bridge); in UpdateOrDeleteBridgePoll()