Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions qcoro/qcorotask.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class TaskFinalSuspend {
*
* \param[in] finishedCoroutine handle of the just finished coroutine
*/
template<typename _Promise>
void await_suspend(std::coroutine_handle<_Promise> finishedCoroutine) noexcept {
template<typename Promise>
void await_suspend(std::coroutine_handle<Promise> finishedCoroutine) noexcept {
auto &promise = finishedCoroutine.promise();

if (promise.mResumeAwaiter.exchange(true, std::memory_order_acq_rel)) {
Expand Down Expand Up @@ -366,7 +366,7 @@ class TaskPromise<void> final : public TaskPromiseBase {
};

//! Base-class for Awaiter objects returned by the \c Task<T> operator co_await().
template<typename _Promise>
template<typename Promise>
class TaskAwaiterBase {
public:
//! Returns whether to co_await
Expand Down Expand Up @@ -415,11 +415,11 @@ class TaskAwaiterBase {
/*!
* \param[in] coroutine hande for the coroutine that is being co_awaited.
*/
TaskAwaiterBase(std::coroutine_handle<_Promise> awaitedCoroutine)
TaskAwaiterBase(std::coroutine_handle<Promise> awaitedCoroutine)
: mAwaitedCoroutine(awaitedCoroutine) {}

//! Handle of the coroutine that is being co_awaited by this awaiter
std::coroutine_handle<_Promise> mAwaitedCoroutine = {};
std::coroutine_handle<Promise> mAwaitedCoroutine = {};
};

} // namespace detail
Expand Down