/cpp-coroutine-job-system

Example Code for Cpp Coroutine Job System talk at CppCon 2020

Primary LanguageC++MIT LicenseMIT

cpp-coroutine-job-system

./CppCon2020-coroutine-job-system.pptx: the slide deck for CppCon 2020

Environment

I only tested on windows with MSVC because I used some OS API and did not bother to make the system portable. But the code should be able to compile with some change of utility functions according to the target platform. User will also need to change the cmake file to update corresponding compiler switch.

Build

  • Tested on visual studio 16.8 Preview 3, which has fully implemented the coroutine TS
  • Open folder in VS
  • Run

Issue Report

  • The code is for demonstration purpose, so I do not have plan to make the system robust.
  • Issue reports/Pull requests are generally welcomed. I will either fix the bug if it's conceptionally wrong, or add comments if I decide not to fix.

Disclaimer

  • This is coded mainly for learning purpose, completely under-tested, so be careful :)