feat(scheduler): implement: #8 - finished basic scheduler subsystem

Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
zontreck 2024-10-05 00:29:51 -07:00
parent 6fd72c2017
commit 5a333f262f

View file

@ -18,6 +18,12 @@ default
llSetTimerEvent(0.5);
}
changed(integer iChange) {
if(iChange & CHANGED_OWNER) {
llResetScript();
}
}
timer () {
integer i =0;
integer end = llGetListLength(g_lCallbacks);
@ -27,6 +33,9 @@ default
integer iExpires = llList2Integer(g_lCallbacks, i+1);
if(llGetUnixTime() > iExpires) {
// Send the callback signal
Callback(llList2String(g_lCallbacks, i+2), llList2String(g_lCallbacks, i));
g_lCallbacks = llDeleteSubList(g_lCallbacks, i, i+g_iStride);
return;
}
}
}
@ -67,6 +76,8 @@ default
break;
}
}
} else if(iNum == LINK_SIGNAL_REBOOT) {
llResetScript();
}
DEBUG_FUNC(false, "link_message", []);