This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
OC-PsychOS2
mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
add os.getTimeout() function to ask how long the scheduler waits between running processes
master
XeonSquared
4 years ago
parent
4e64a55169
commit
87596c8834
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
module/sched.lua
+ 3
- 0
module/sched.lua
View File
@@ -58,6 +58,9 @@ function os.getenv(k) -- gets a process' *k* environment variable
return tTasks[cPid].e[k]
end
end
function os.getTimeout()
return nTimeout
end
function os.setTimeout(n)
if type(n) == "number" and n >= 0 then
nTimeout = n
Write
Preview
Loading…
Cancel
Save