We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e898cb7 commit 965c963Copy full SHA for 965c963
stdlib/public/Concurrency/TaskGroup.cpp
@@ -1585,7 +1585,7 @@ reevaluate_if_taskgroup_has_results:;
1585
auto newStatus = TaskGroupStatus{assumedStatus};
1586
if (status.compare_exchange_strong(
1587
assumedStatus, newStatus.completingPendingReadyWaiting(this).status,
1588
- /*success*/ std::memory_order_relaxed,
+ /*success*/ std::memory_order_release,
1589
/*failure*/ std::memory_order_acquire)) {
1590
1591
// We're going back to running the task, so if we suspended before,
0 commit comments