C++ coroutines: The problem of the DispatcherQueue task that runs too soon, part 3--Raymond Chen

Save to:
Instapaper Pocket Readability

The series contine.

C++ coroutines: The problem of the DispatcherQueue task that runs too soon, part 3

by Raymond Chen

From the article:

Last time, we fixed a race condition in C++/WinRT’s resume_foreground(Dispatcher­Queue) function when it tries to resume execution on a dispatcher queue. We did this by having the queued task wait until await_suspend was finished before allowing the coroutine to resume. The hard part was finding a place to put the synchronization object, and we ended up putting it in the queued task’s lambda...

Add a Comment

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.