I have an idea: how about putting all the tasks into a set, making sure that the due time is unique:
http://www.cplusplus.com/reference/set/set/
You could then get and erase the task from front(), emplace a new task of the same type (making sure that due time is unique) and work the current task. This way, we wouldn't have the long chain of scheduler_review calls.
« Back to merge proposal
I have an idea: how about putting all the tasks into a set, making sure that the due time is unique:
http:// www.cplusplus. com/reference/ set/set/
You could then get and erase the task from front(), emplace a new task of the same type (making sure that due time is unique) and work the current task. This way, we wouldn't have the long chain of scheduler_review calls.