add unix.fork&unix.pipe(do not work on windows platform)

This commit is contained in:
ValKmjolnir
2022-03-09 19:03:12 +08:00
parent 61666d275d
commit d8156e839b
4 changed files with 51 additions and 6 deletions
+23 -2
View File
@@ -1,7 +1,28 @@
import("lib.nas");
var geodinfo=func(lat,lon){}
var maketimer=func(t,f){}
var geodinfo=func(lat,lon){
return {};
}
var maketimer=func(interval,function){
return {
isRunning:0,
start:func(){
me.isRunning=1;
while(1){
unix.sleep(interval);
function();
}
},
stop:func(){
me.isRunning=0;
},
restart:func(interval){
},
singleShot:0,
simulatedTime:0
};
}
var props=
{