Tao.Lua SDK Documentation

Lua.lua_newthread Method 

Creates a new thread, pushes it on the stack, and returns a pointer to a lua_State that represents this new thread. The new state returned by this function shares with the original state all global objects (such as tables), but has an independent execution stack.

[Visual Basic]
Public Shared Function lua_newthread( _
   ByVal L As IntPtr _
) As IntPtr
[C#]
public static IntPtr lua_newthread(
   IntPtr L
);

Parameters

L

Return Value

Remarks

There is no explicit function to close or to destroy a thread. Threads are subject to garbage collection, like any Lua object.

See Also

Lua Class | Tao.Lua Namespace