Home | History | Annotate | Download | only in wifi_hal

Lines Matching refs:State

19 HalState::HalState() : mState(State::Constructed) {
23 // Ensure that checking the state and waiting on the condition is atomic.
26 if (mState != State::Stopped && mState != State::Constructed) {
31 // We are in the correct state but our info object is still allocated.
38 // Otherwise we're going to remain in the previous state and having an
41 mState = State::Initialized;
44 // If we failed to initalize we remain in the same state.
50 // Ensure atomicity in checking and setting state
53 if (mState == State::Stopping || mState == State::Stopped) {
57 if (mState != State::Running) {
59 // in the stopped state.
63 // call this when initialized or constructed so we'll set the state
67 mState = State::Stopped;
70 mState = State::Stopping;
73 // We have now requested the stop, we'll change state in the stop handler
80 // Atomically check and set state to running
82 if (mState != State::Initialized || !mInfo) {
85 mState = State::Running;
100 mState = State::Stopped;