mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Changes to threads
This commit is contained in:
@@ -34,6 +34,8 @@ __IMPORTS = {...}
|
||||
__FUNC__=table.remove(__IMPORTS,1)
|
||||
__THREADID__=table.remove(__IMPORTS,1)
|
||||
__THREADNAME__=table.remove(__IMPORTS,1)
|
||||
THREAD_NAME = __THREADNAME__
|
||||
THREAD_ID = __THREADID__
|
||||
math.randomseed(__THREADID__)
|
||||
math.random()
|
||||
math.random()
|
||||
|
||||
@@ -114,14 +114,6 @@ function threads.getThread(n)
|
||||
return GLOBAL["__THREAD_"..n]
|
||||
end
|
||||
|
||||
function threads.getName()
|
||||
return __THREADNAME__
|
||||
end
|
||||
|
||||
function threads.getID()
|
||||
return __THREADID__
|
||||
end
|
||||
|
||||
function threads.sleep(n)
|
||||
love.timer.sleep(n)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user