Moai SDK  1.5 revision 1 (MoaiEdition)
MOAICoroutine Class Reference
Inheritance diagram for MOAICoroutine:
MOAIAction MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  blockOnAction
  currentThread
  run

Function Documentation

Skip updating current thread until the specified action is no longer busy. A little more efficient than spinlocking from Lua.


function blockOnAction ( MOAIAction blocker )
Parameters:
blocker ( MOAIAction )
Returns:
nil

Returns the currently running thread (if any).


function currentThread ()
Returns:
currentThread ( MOAICoroutine )
run

Starts a thread with a function and passes parameters to it.


function run ( MOAICoroutine self, function threadFunc, ... )
Parameters:
self ( MOAICoroutine )
threadFunc ( function )
( ... ) parameters
Returns:
nil