Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Keeps track of all create cLuaState instances. More...
#include <LuaState.h>
Static Public Member Functions | |
static void | Add (cLuaState &a_LuaState) |
Adds the specified Lua state to the internal list of LuaStates. More... | |
static void | Del (cLuaState &a_LuaState) |
Deletes the specified Lua state from the internal list of LuaStates. More... | |
static AString | GetStats (void) |
Returns the statistics for all the registered LuaStates. More... | |
Protected Types | |
typedef cLuaState * | cLuaStatePtr |
typedef std::vector< cLuaStatePtr > | cLuaStatePtrs |
Static Protected Member Functions | |
static cLuaStateTracker & | Get (void) |
Returns the single instance of this class. More... | |
Protected Attributes | |
cCriticalSection | m_CSLuaStates |
Protects m_LuaStates against multithreaded access. More... | |
cLuaStatePtrs | m_LuaStates |
The internal list of LuaStates. More... | |
Keeps track of all create cLuaState instances.
Can query each for the amount of currently used memory.
Definition at line 1039 of file LuaState.h.
|
protected |
Definition at line 1052 of file LuaState.h.
|
protected |
Definition at line 1053 of file LuaState.h.
|
static |
Adds the specified Lua state to the internal list of LuaStates.
Definition at line 123 of file LuaState.cpp.
|
static |
Deletes the specified Lua state from the internal list of LuaStates.
Definition at line 134 of file LuaState.cpp.
|
staticprotected |
Returns the single instance of this class.
Definition at line 181 of file LuaState.cpp.
|
static |
Returns the statistics for all the registered LuaStates.
Definition at line 154 of file LuaState.cpp.
|
protected |
Protects m_LuaStates against multithreaded access.
Definition at line 1060 of file LuaState.h.
|
protected |
The internal list of LuaStates.
Protected against multithreaded access by m_CSLuaStates.
Definition at line 1057 of file LuaState.h.