re PR libstdc++/60966 (std::call_once sometime hangs)
PR libstdc++/60966 * include/std/future (__future_base::_State_baseV2::_M_set_result): Pass lock into _M_do_set and hold it until the function returns. Signal condition variable after call_once completes. (__future_base::_State_baseV2::_M_do_set): Use lock argument. Do not signal here. * testsuite/30_threads/promise/60966.cc: New. From-SVN: r210556
Showing
Please
register
or
sign in
to comment