Searched refs:ChangeState (Results 1 – 2 of 2) sorted by relevance
/art/dt_fd_forward/ |
D | dt_fd_forward.cc | 86 bool FdForwardTransport::ChangeState(TransportState old_state, TransportState new_state) { in ChangeState() function in dt_fd_forward::FdForwardTransport 121 if (!ChangeState(TransportState::kClosed, TransportState::kListenSetup)) { in SetupListen() 126 CHECK(ChangeState(TransportState::kListenSetup, TransportState::kListening)); in SetupListen() 141 if (ChangeState(TransportState::kListening, TransportState::kClosed) || in StopListening() 365 while (!ChangeState(TransportState::kListening, TransportState::kOpening)) { in Accept() 376 CHECK(ChangeState(TransportState::kOpening, TransportState::kListening)); in Accept() 391 CHECK(ChangeState(TransportState::kOpening, TransportState::kListening)); in Accept() 399 CHECK(ChangeState(TransportState::kOpening, TransportState::kListening)); in Accept() 407 CHECK(ChangeState(TransportState::kOpening, TransportState::kOpen)); in Accept() 443 ChangeState(TransportState::kOpen, TransportState::kClosed) ? OK : ERR(ILLEGAL_STATE); in Close()
|
D | dt_fd_forward.h | 106 bool ChangeState(TransportState old_state, TransportState new_state); // REQUIRES(state_mutex_);
|