mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Working on new type system, planning out debugmanager
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user