| 59 | } |
| 60 | |
| 61 | void BlockingOpState::AwaitState(int awaiting_state) { |
| 62 | mutex_lock ml(mu_); |
| 63 | while (state_ != awaiting_state) { |
| 64 | cv_.wait(ml); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | void BlockingOpState::MoveToState(int expected_current, int next) { |
| 69 | mutex_lock ml(mu_); |
no test coverage detected