Implementing a lightweight task scheduler in C++ | Hacker News Reader