Skip to content

Implement moveToThread() awaitable#130

Merged
danvratil merged 2 commits intomainfrom
feature/move-to-thread
Jan 17, 2023
Merged

Implement moveToThread() awaitable#130
danvratil merged 2 commits intomainfrom
feature/move-to-thread

Conversation

@danvratil
Copy link
Collaborator

Allows executing a piece of code in another thread within the same coroutine.

Allows executing a piece of code in another thread within the same coroutine.
GCC tries to move the ThreadContext returned from Qcoro::moveToThread()
most likely into QCoro::TaskPromise::await_transform() even though it could
use a more suitable overload - or maybe the move is somewhere else in the generate
code. In any case, for GCC we need to have ThreadContext movable.
@danvratil danvratil force-pushed the feature/move-to-thread branch from 43e63ec to 8bfed65 Compare January 17, 2023 20:13
@danvratil danvratil merged commit 238a982 into main Jan 17, 2023
@danvratil danvratil deleted the feature/move-to-thread branch January 17, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant