This commit is contained in:
aozhiwei 2019-12-16 21:29:29 +08:00
parent ea394ad9a9
commit 4e70850cd9

View File

@ -230,8 +230,13 @@ public class Timer {
private int cascade(ListHead[] tv, int index) {
tv[index].replaceInit(cascadeList);
while (!cascadeList.empty()) {
// internalAddTimer();
if (!cascadeList.empty()) {
ListHead pos, n;
for (pos = cascadeList.next, n = pos.next;
pos != cascadeList;
pos = n , n = pos.next) {
internalAddTimer((TimerList)pos.data);
}
}
cascadeList.init();
return index;