Files
koreader/frontend
Qingping Hou b1a1aeca0a fix(task scheduler): many race conditions
_checkTasks first get number of tasks in the stack and does a numeric
for loop to go through each task. The problem is a task might call
schedule or unschedule, which will reorder tasks in the stack. This will
invalidate many of the table indexes used in the for loop.

This patch turns the task stack into an ordered queue, so _checkTasks
only pops one item out of the queue each time instead of setting up a
for loop at the beginning. This should avoid the race condition
mentioned above.
2015-12-26 12:59:48 -08:00
..
2015-10-07 22:42:12 +08:00
2015-10-03 14:48:51 +08:00
2014-03-13 21:52:43 +08:00
2015-10-03 14:48:51 +08:00
2015-10-03 14:48:51 +08:00
2015-10-03 14:48:51 +08:00
2015-10-03 14:48:51 +08:00
2014-11-19 21:46:45 +01:00
2015-04-28 11:06:38 +08:00
2015-03-02 14:55:16 +08:00
2014-03-13 21:52:43 +08:00