how to start a NSThread

85 views
Skip to first unread message

stone

unread,
Jun 8, 2012, 11:08:53 AM6/8/12
to iPhone Wax
I need do a lot of work in thread
it's better no to do in main thread
so i used
NSThread:detachNewThreadSelector_toTarget_withObject('load:',
Effect, nil)
but it does not work
is there any way to run a thread in lua under iphonewax frame?

有没有办法用lua启用一个线程NSThread?

Corey Johnson

unread,
Jun 11, 2012, 11:49:33 AM6/11/12
to ipho...@googlegroups.com
Lua code can only run in the main thread. If you want to do something in a separate thread you have to write the code in objective-c and call if from lua.
Reply all
Reply to author
Forward
0 new messages