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
90 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
Black Belt
90 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.

Reply