configured the scheduler to be more ... responsive.

这个提交包含在:
Izaya 2019-12-21 18:35:10 +11:00
父节点 c7213d4cbe
当前提交 cf0cf32642
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -1,5 +1,5 @@
do
local tTasks,nPid,nTimeout,cPid = {},1,1,0 -- table of tasks, next process ID, event timeout, current PID
local tTasks,nPid,nTimeout,cPid = {},1,0.25,0 -- table of tasks, next process ID, event timeout, current PID
function os.spawn(f,n) -- creates a process from function *f* with name *n*
tTasks[nPid] = {
c=coroutine.create(f), -- actual coroutine