Creates a new thread running in a new, independent state.
The allocator function. Lua does all memory allocation for this state through this function.
an opaque pointer that Lua passes to the allocator in every call.
null if it cannot create the thread or the state (due to lack of memory).
riverd.lua.types.lua_Alloc
See Implementation
Creates a new thread running in a new, independent state.