Difference between revisions of "Talk:love.thread.getThreads"

(Created page with 'That ThreadArray it returns... is that userdata or just a plain old table? The docs seem a bit... vague on this point.')
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
That ThreadArray it returns... is that userdata or just a plain old table? The docs seem a bit... vague on this point.
 
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

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