feat(scheduler): implement: #8 - finished basic scheduler subsystem
Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
parent
6fd72c2017
commit
5a333f262f
1 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,12 @@ default
|
||||||
llSetTimerEvent(0.5);
|
llSetTimerEvent(0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changed(integer iChange) {
|
||||||
|
if(iChange & CHANGED_OWNER) {
|
||||||
|
llResetScript();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
timer () {
|
timer () {
|
||||||
integer i =0;
|
integer i =0;
|
||||||
integer end = llGetListLength(g_lCallbacks);
|
integer end = llGetListLength(g_lCallbacks);
|
||||||
|
@ -27,6 +33,9 @@ default
|
||||||
integer iExpires = llList2Integer(g_lCallbacks, i+1);
|
integer iExpires = llList2Integer(g_lCallbacks, i+1);
|
||||||
if(llGetUnixTime() > iExpires) {
|
if(llGetUnixTime() > iExpires) {
|
||||||
// Send the callback signal
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if(iNum == LINK_SIGNAL_REBOOT) {
|
||||||
|
llResetScript();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_FUNC(false, "link_message", []);
|
DEBUG_FUNC(false, "link_message", []);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue