mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 10:36:44 +00:00
Disable scheduler due to bug
This commit is contained in:
parent
f5d6bbfaae
commit
74c9e25ad6
1 changed files with 8 additions and 3 deletions
|
@ -6,6 +6,7 @@ local argparser = require("argparser")
|
||||||
local scheduler = require("scheduler")
|
local scheduler = require("scheduler")
|
||||||
local createPackageEnvironment = require("shell.package")
|
local createPackageEnvironment = require("shell.package")
|
||||||
|
|
||||||
|
local useScheduler = false
|
||||||
local exit = false
|
local exit = false
|
||||||
local parentShell = shell
|
local parentShell = shell
|
||||||
local isStartupShell = parentShell == nil
|
local isStartupShell = parentShell == nil
|
||||||
|
@ -97,10 +98,14 @@ function shell.run(...)
|
||||||
ok, err = pcall(func, table.unpack(args, 2))
|
ok, err = pcall(func, table.unpack(args, 2))
|
||||||
end
|
end
|
||||||
|
|
||||||
local programTask, yielded = scheduler.spawn(run)
|
if useScheduler then
|
||||||
|
local programTask, yielded = scheduler.spawn(run)
|
||||||
|
|
||||||
if yielded then
|
if yielded then
|
||||||
coroutine.yield("scheduler_task_end")
|
coroutine.yield("scheduler_task_end")
|
||||||
|
end
|
||||||
|
else
|
||||||
|
run()
|
||||||
end
|
end
|
||||||
|
|
||||||
if not ok then
|
if not ok then
|
||||||
|
|
Loading…
Reference in a new issue