Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

How Is Continuation Implemented

christiecohen
Beginner
185 Views
I saw it use a allocate_continuation_proxy.
But I don't find how it works.

As you described, the continuation merchanism reduced the stack overflow issue.
I suppose it changes the recursive call to some other logic

How does it works?

Thanks

0 Kudos
1 Reply
RafSchietekat
Valued Contributor III
185 Views

If you have studied tutorial and reference manual for all you need to know from a user's point of view and are stillcurious aboutsome of the implementation details, you may find thread "Understanding Internals of tbb::task" interesting.

0 Kudos
Reply