| 322 | } |
| 323 | |
| 324 | void CoalescedLoad::setEndState(State endState) { |
| 325 | std::lock_guard<std::mutex> l(mutex_); |
| 326 | state_ = endState; |
| 327 | if (promise_ != nullptr) { |
| 328 | promise_->setValue(true); |
| 329 | promise_.reset(); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | void CoalescedLoad::setEndState(State expectState, State tState, State fState) { |
| 334 | std::lock_guard<std::mutex> l(mutex_); |