We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
run_loop
sync_wait
1 parent c437677 commit 79368feCopy full SHA for 79368fe
1 file changed
include/beman/execution/detail/run_loop.hpp
@@ -175,10 +175,8 @@ class run_loop {
175
}
176
177
auto finish() -> void {
178
- {
179
- ::std::lock_guard guard(this->mutex);
180
- this->current_state = state::finishing;
181
- }
+ ::std::lock_guard guard(this->mutex);
+ this->current_state = state::finishing;
182
this->condition.notify_one();
183
184
};
0 commit comments