0

终于完成游戏框架的C++20协程改造的最后一步

 1 year ago
source link: https://owent.net/2023/2303.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

终于完成游戏框架的C++20协程改造的最后一步


  • Task ID提取和判定当前状态
  • GCC BUG: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108620
  • returnco_return 混合的扩展
  • 协程和lambda表达式返回值推断
  • 忽略void返回值(result_void_type)
  • task::then 的变化(生命周期) -> async_then(async_invoke+await)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK