Commit 422759cb authored by Xavier Thompson's avatar Xavier Thompson

join.hpp: Check exceptions in sync resume

parent b0a2f340
...@@ -103,10 +103,11 @@ namespace typon ...@@ -103,10 +103,11 @@ namespace typon
return std::noop_coroutine(); return std::noop_coroutine();
} }
void await_resume() noexcept void await_resume()
{ {
_data._thefts = 0; _data._thefts = 0;
_data._n.store(UMAX, std::memory_order_release); _data._n.store(UMAX, std::memory_order_release);
_data._children.check_exceptions();
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment