Plan on testing parity between the threading modules

This commit is contained in:
2023-04-20 23:23:51 -04:00
parent c65b850529
commit 8e6d174f20
4 changed files with 7 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ if not (GLOBAL and THREAD) then
else
lanes = require("lanes")
end
function multi:newSystemThreadedQueue(name)
local name = name or multi.randomString(16)
local c = {}
+2
View File
@@ -69,6 +69,7 @@ function multi:newSystemThreadedQueue(name)
THREAD.package(name,c)
return c
end
function multi:newSystemThreadedTable(name)
local name = name or multi.randomString(16)
local c = {}
@@ -79,6 +80,7 @@ function multi:newSystemThreadedTable(name)
THREAD.package(name,c)
return c
end
local jqc = 1
function multi:newSystemThreadedJobQueue(n)
local c = {}
+2
View File
@@ -50,6 +50,7 @@ function multi:newSystemThreadedQueue(name)
GLOBAL[name or "_"] = c
return c
end
function multi:newSystemThreadedTable(name)
local c = {}
function c:init()
@@ -68,6 +69,7 @@ if not setfenv then
end
end
end
function multi:newSystemThreadedJobQueue(n)
local c = {}
c.cores = n or THREAD.getCores()*2