C++ coroutines: Getting rid of our mutex--Raymond Chen
The series continue.
C++ coroutines: Getting rid of our mutex
by Raymond Chen
From the article:
Our coroutine implementation uses a mutex to guard against the race condition where a coroutine completes at the same time another thread tries to wait for its completion. The race condition in question is this one...