Working on new type system, planning out debugmanager

This commit is contained in:
2023-09-04 12:03:00 -04:00
parent a660b63581
commit 5f5723e936
11 changed files with 98 additions and 87 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ function multi:newSystemThreadedQueue(name)
local c = {}
c.Name = name
c.Type = multi.SQUEUE
c.Type = multi.registerType("s_queue")
c.chan = love.thread.newChannel()
function c:push(dat)
@@ -54,7 +54,7 @@ function multi:newSystemThreadedTable(name)
local c = {}
c.Name = name
c.Type = multi.STABLE
c.Type = multi.registerType("s_table")
c.tab = THREAD.createTable(name)
function c:init()
@@ -104,7 +104,7 @@ function multi:newSystemThreadedJobQueue(n)
c.cores = n or THREAD.getCores()
c.registerQueue = {}
c.Type = multi.SJOBQUEUE
c.Type = multi.registerType("s_jobqueue")
c.funcs = THREAD.createTable("__JobQueue_"..jqc.."_table")
c.queue = multi:newSystemThreadedQueue("__JobQueue_"..jqc.."_queue")
c.queueReturn = multi:newSystemThreadedQueue("__JobQueue_"..jqc.."_queueReturn")
+3
View File
@@ -33,6 +33,9 @@ _G.THREAD_ID = 0
local multi, thread = require("multi"):init()
local GLOBAL, THREAD = require("multi.integration.loveManager.threads"):init()
multi.registerType("s_function")
multi.registerType("s_thread")
multi.integration = {}
multi.isMainThread = true
local threads = {}