Lines Matching refs:state_
110 if (state_ != ThreadState::JOINED) return false; in start()
113 state_ = ThreadState::STARTING; in start()
117 state_ = ThreadState::RUNNING; in start()
121 while (state_ == ThreadState::RUNNING) { in start()
133 if (state_ != ThreadState::RUNNING) { in start()
151 state_ = ThreadState::TERMINATING; in start()
155 condVar_.wait(lock, [this]() -> bool { return state_ != ThreadState::STARTING; }); in start()
156 return state_ == ThreadState::RUNNING; in start()
161 if (state_ == ThreadState::JOINED) return; in stop()
162 if (state_ == ThreadState::RUNNING) { in stop()
163 state_ = ThreadState::STOP_REQUESTED; in stop()
166 condVar_.wait(lock, [this]() -> bool { return state_ == ThreadState::TERMINATING; }); in stop()
169 state_ = ThreadState::JOINED; in stop()