boostorg / context

307 stars 150 forks source link

Document the difference between Fiber and Call/CC #220

Closed naman-dixit-srib closed 1 year ago

naman-dixit-srib commented 1 year ago

The documentation and example code for both is near identical, and there is no explicitly documented difference between the two (or between them and execution_context and coroutine).

Could this be rectified, as it is very hard to those unfamiliar with this particular library to figure what subtle difference is there between all these alternatives?

olk commented 1 year ago

call/cc is based on an historic API fiber_context is the API proposed in "P0876: fiber_context - fibers without scheduler" (C++ standardisation).