diff options
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r-- | src/Bindings/LuaState.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index e4c537967..a6ba3397c 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -1033,6 +1033,16 @@ void cLuaState::Push(cLuaTCPLink * a_TCPLink) +void cLuaState::Push(std::thread* a_Thread) { + ASSERT(IsValid()); + + tolua_pushusertype(m_LuaState, a_Thread, "std::thread *"); +} + + + + + void cLuaState::Push(cLuaUDPEndpoint * a_UDPEndpoint) { ASSERT(IsValid()); @@ -1099,6 +1109,17 @@ void cLuaState::Push(std::chrono::milliseconds a_Value) + +void cLuaState::Push(std::mutex * a_Mutex) { + ASSERT(IsValid()); + + tolua_pushusertype(m_LuaState, a_Mutex, "std::mutex *"); +} + + + + + void cLuaState::Pop(int a_NumValuesToPop) { ASSERT(IsValid()); |