min*_*iot 9

一些差异:

  • Boost.Coroutine2需要C++ 11
  • Boost.Coroutine提供对称和非对称协同程序,Boost.Coroutine2仅提供不对称协同程序.

  • 为什么 coroutine2 只提供非对称协程? (2认同)

xlr*_*lrg 7

  • boost.coroutine2是boost.coroutine的后续项目(boost.coroutine很快会被标记为已弃用)
  • boost.coroutine2使用boost.context中的class execution_context
  • boost.coroutine是使用来自boost.context的弃用的C-like fcontext-API实现的