SerializedAsyncContin:getAcquiredQutexHistory returns rval ref

This ensures that the caller takes ownership.
This commit is contained in:
2025-09-29 19:40:51 -04:00
parent 21da27649e
commit 5c7a92b3a4
2 changed files with 4 additions and 3 deletions
@@ -182,7 +182,7 @@ SerializedAsynchronousContinuation<OriginalCbFnT>
#endif
template <class OriginalCbFnT>
std::unique_ptr<std::forward_list<std::reference_wrapper<Qutex>>>
std::unique_ptr<std::forward_list<std::reference_wrapper<Qutex>>>&&
SerializedAsynchronousContinuation<OriginalCbFnT>::getAcquiredQutexHistory()
const
{
@@ -213,7 +213,7 @@ const
}
}
return heldLocks;
return std::move(heldLocks);
}
// Explicit template instantiations for the types we need