Static Public Member Functions | |
static synchronized LuaState | newLuaState () |
static synchronized LuaState | getExistingState (int index) |
static synchronized int | insertLuaState (LuaState L) |
static synchronized void | removeLuaState (int idx) |
This class is responsible for instantiating new LuaStates. When a new LuaState is instantiated it is put into a List and an index is returned. This index is registred in Lua and it is used to find the right LuaState when lua calls a Java Function.
|
static |
|
static |
Receives a existing LuaState and checks if it exists in the states list. If it doesn't exist adds it to the list.
L |
|
static |
|
static |
removes the luaState from the states list
idx |