Difference between revisions of "Talk:love.thread.getThreads"
m |
|||
Line 2: | Line 2: | ||
it returned a table of thread objects for me. --TechnoCat | it returned a table of thread objects for me. --TechnoCat | ||
+ | |||
+ | function love.load() | ||
+ | thread1 = love.thread.newThread("timer", "thread.lua") | ||
+ | threads = love.thread.getThreads() | ||
+ | print(threads.timer) | ||
+ | end | ||
+ | output: | ||
+ | Thread |
Latest revision as of 18:47, 15 November 2010
That ThreadArray it returns... is that userdata or just a plain old table? The docs seem a bit... vague on this point.
it returned a table of thread objects for me. --TechnoCat
function love.load() thread1 = love.thread.newThread("timer", "thread.lua") threads = love.thread.getThreads() print(threads.timer) end
output:
Thread