mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
b1a1aeca0a
_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. |
9 years ago | |
---|---|---|
.. | ||
apps | 9 years ago | |
device | 9 years ago | |
document | 9 years ago | |
ui | 9 years ago | |
MD5.lua | 9 years ago | |
cache.lua | 9 years ago | |
cacheitem.lua | 10 years ago | |
configurable.lua | 10 years ago | |
dbg.lua | 9 years ago | |
device.lua | 9 years ago | |
docsettings.lua | 9 years ago | |
dump.lua | 9 years ago | |
gettext.lua | 10 years ago | |
httpclient.lua | 9 years ago | |
luxl.lua | 10 years ago | |
optmath.lua | 10 years ago | |
up_reg.list | 10 years ago | |
util.lua | 9 years ago |