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.
-- 
https://code.launchpad.net/~widelands-dev/widelands/ai-scheduler/+merge/251327
Your team Widelands Developers is requested to review the proposed merge of 
lp:~widelands-dev/widelands/ai-scheduler into lp:widelands.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to