comparison OrthancServer/Sources/LuaScripting.cpp @ 5026:bafef43b6f37

cppcheck
author Alain Mazy <am@osimis.io>
date Tue, 21 Jun 2022 10:57:37 +0200
parents eb8ca3403983
children 06ffe03d008a
comparison
equal deleted inserted replaced
5025:afa427f65444 5026:bafef43b6f37
863 else 863 else
864 { 864 {
865 LOG(INFO) << "Starting the Lua engine"; 865 LOG(INFO) << "Starting the Lua engine";
866 eventThread_ = boost::thread(EventThread, this); 866 eventThread_ = boost::thread(EventThread, this);
867 867
868 LuaScripting::Lock lock(*this); 868 LuaScripting::Lock luaLock(*this);
869 869
870 if (heartBeatPeriod_ > 0 && lock.GetLua().IsExistingFunction("OnHeartBeat")) 870 if (heartBeatPeriod_ > 0 && luaLock.GetLua().IsExistingFunction("OnHeartBeat"))
871 { 871 {
872 LOG(INFO) << "Starting the Lua HeartBeat thread with a period of " << heartBeatPeriod_ << " seconds"; 872 LOG(INFO) << "Starting the Lua HeartBeat thread with a period of " << heartBeatPeriod_ << " seconds";
873 heartBeatThread_ = boost::thread(HeartBeatThread, this); 873 heartBeatThread_ = boost::thread(HeartBeatThread, this);
874 } 874 }
875 state_ = State_Running; 875 state_ = State_Running;