C++ coroutines: Getting rid of our reference count--Raymond Chen

Save to:
Instapaper Pocket Readability

The series continue.

C++ coroutines: Getting rid of our reference count

by Raymond Chen

From the article:

In an earlier installment, we simplified our promise_ptr type, and one of the consequences of this is that there are no remaining caller of increment_ref. This means that we don’t need a reference count at all and can rely on the state changes to tell us when to destroy the promise: When the awaiter has obtained the result or, or when the coroutine completes and discovers that the awaiter has abandoned its effort to obtain the result...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.