Cuberite
A lightweight, fast and extensible game server for Minecraft
|
A RAII-style mutex lock for accessing the internal LuaState. More...
#include <PluginLua.h>
Public Member Functions | |
cOperation (cPluginLua &a_Plugin) | |
cLuaState & | operator() (void) |
Protected Attributes | |
cLuaState::cLock | m_Lock |
RAII lock for the Lua state. More... | |
cPluginLua & | m_Plugin |
A RAII-style mutex lock for accessing the internal LuaState.
This will be the only way to retrieve the plugin's LuaState; therefore it directly supports accessing the LuaState of the locked plugin. Usage: cPluginLua::cOperation Op(SomePlugin); Op().Call(...) // Call a function in the plugin's LuaState
Definition at line 38 of file PluginLua.h.
|
inline |
Definition at line 41 of file PluginLua.h.
|
inline |
Definition at line 47 of file PluginLua.h.
|
protected |
RAII lock for the Lua state.
Definition at line 53 of file PluginLua.h.
|
protected |
Definition at line 50 of file PluginLua.h.