![]() |
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 1037 of file LuaState.h.
|
protected |
Definition at line 1050 of file LuaState.h.
|
protected |
Definition at line 1051 of file LuaState.h.
|
static |
Adds the specified Lua state to the internal list of LuaStates.
Definition at line 126 of file LuaState.cpp.
|
static |
Deletes the specified Lua state from the internal list of LuaStates.
Definition at line 137 of file LuaState.cpp.
|
staticprotected |
Returns the single instance of this class.
Definition at line 184 of file LuaState.cpp.
|
static |
Returns the statistics for all the registered LuaStates.
Definition at line 157 of file LuaState.cpp.
|
protected |
Protects m_LuaStates against multithreaded access.
Definition at line 1058 of file LuaState.h.
|
protected |
The internal list of LuaStates.
Protected against multithreaded access by m_CSLuaStates.
Definition at line 1055 of file LuaState.h.