More about coroutines.
On the perils of holding a lock across a coroutine suspension point, part 1: The set-up
by Raymond Chen
From the article:
Say you want to perform a bunch of asynchronous operations involving some object state, but also want to make sure that no other tasks access that object state at the same time. For synchronous code, you would use a traditional synchronization object like a mutex or critical section...
Add a Comment
Comments are closed.