diff options
author | Mattes D <github@xoft.cz> | 2017-01-17 22:38:04 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-01-18 09:03:05 +0100 |
commit | 7cc3fb098df221f083da1d81d2327a0a5f22edf5 (patch) | |
tree | de9232cbf239800ea1e7a71cf52086509a9472ea /src/Bindings/LuaState.h | |
parent | Debuggers: Added a deadlock simulation command. (diff) | |
download | cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.gz cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.bz2 cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.lz cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.xz cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.zst cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaState.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index 558e8d79a..1a56c18ff 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -46,6 +46,7 @@ class cLuaServerHandle; class cLuaTCPLink; class cLuaUDPEndpoint; class cPluginLua; +class cDeadlockDetect; @@ -822,6 +823,12 @@ public: logs the stack trace and stack values. */ void LogApiCallParamFailure(const char * a_FnName, const char * a_ParamNames); + /** Adds this object's CS to the DeadlockDetect's tracked CSs. */ + void TrackInDeadlockDetect(cDeadlockDetect & a_DeadlockDetect); + + /** Removes this object's CS from the DeadlockDetect's tracked CSs. */ + void UntrackInDeadlockDetect(cDeadlockDetect & a_DeadlockDetect); + protected: cCriticalSection m_CS; |