widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #03798
Re: [Merge] lp:~widelands-dev/widelands/ai-scheduler into lp:widelands
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.
References