Explorar el Código

configured the scheduler to be more ... responsive.

pull/1/head
XeonSquared hace 4 años
padre
commit
cf0cf32642
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      module/sched.lua

+ 1
- 1
module/sched.lua Ver fichero

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


Cargando…
Cancelar
Guardar