Added way to get new threads from server

This commit is contained in:
Cooldude2606
2017-12-07 19:23:50 +00:00
parent 8a87d1075b
commit 1e1fabd565

View File

@@ -43,6 +43,11 @@ function Server._threads(reset)
return global.exp_core.threads
end
-- see thread:create (this was done so thread can remain local)
function Server.new_thread(obj)
return thread:create(obj)
end
--- Adds a thread into the resolve queue, can be used to lower lag
-- @usage Server.queue_thread(thread) -- return true/false
-- @tparam table the thread to add to the queue must have a resolve function (must be open)