File tree 2 files changed +3
-1
lines changed
stdlib/public/Concurrency
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ void TaskGroupBase::runWaitingTask(PreparedWaitingTask prepared) {
660
660
assert (prepared.waitingTask == nullptr &&
661
661
" unexpected task to schedule in TASK_TO_THREAD_MODEL!"
662
662
" In this mode we should have run the task in-line, "
663
- " rather than return it for scheduling." )
663
+ " rather than return it for scheduling." );
664
664
#endif
665
665
if (auto waitingTask = prepared.waitingTask ) {
666
666
// TODO: allow the caller to suggest an executor
Original file line number Diff line number Diff line change @@ -781,8 +781,10 @@ struct AsyncTask::PrivateStorage {
781
781
782
782
// Destroy the opaque storage of the task
783
783
void destroy () {
784
+ #ifndef NDEBUG
784
785
auto oldStatus = _status ().load (std::memory_order_relaxed);
785
786
assert (oldStatus.isComplete ());
787
+ #endif
786
788
787
789
this ->~PrivateStorage ();
788
790
}
You can’t perform that action at this time.
0 commit comments