Przeglądaj źródła

configured the scheduler to be more ... responsive.

pull/1/head
XeonSquared 6 miesięcy temu
rodzic
commit
cf0cf32642
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      module/sched.lua

+ 1
- 1
module/sched.lua Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz