| 515 | } |
| 516 | |
| 517 | void set(bool new_value) |
| 518 | { |
| 519 | std::lock_guard lock{mutex}; |
| 520 | if (value == new_value) |
| 521 | return; |
| 522 | value = new_value; |
| 523 | changed.notify_all(); |
| 524 | } |
| 525 | |
| 526 | void wait(bool wanted_value) const |
| 527 | { |
no outgoing calls
no test coverage detected