Mercurial > hg > orthanc
diff OrthancServer/Sources/LuaScripting.h @ 5017:0d61efc6256c lua-heart-beat
Added Lua OnHeartBeat()
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 13 Jun 2022 18:54:49 +0200 |
parents | 309fb4f02704 |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancServer/Sources/LuaScripting.h Mon Jun 13 16:55:22 2022 +0200 +++ b/OrthancServer/Sources/LuaScripting.h Mon Jun 13 18:54:49 2022 +0200 @@ -75,10 +75,14 @@ LuaJobManager jobManager_; State state_; boost::thread eventThread_; + boost::thread heartBeatThread_; + unsigned int heartBeatPeriod_; SharedMessageQueue pendingEvents_; static void EventThread(LuaScripting* that); + static void HeartBeatThread(LuaScripting* that); + void LoadGlobalConfiguration(); public: