Skip to content

Commit

Permalink
opt:在LoopWDog线程启动与停止处加日志打印,方便问题排查
Browse files Browse the repository at this point in the history
  • Loading branch information
hevake committed Mar 23, 2024
1 parent 4a652bf commit cedac09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/eventx/loop_wdog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void CheckLoopTag() {

//! 监控线程函数
void ThreadProc() {
LogDbg("LoopWDog started");
while (_keep_running) {
SendLoopFunc();

Expand All @@ -107,6 +108,7 @@ void ThreadProc() {
if (_keep_running)
CheckLoopTag();
}
LogDbg("LoopWDog stoped");
}

//! 默认线程超时执行函数
Expand Down

0 comments on commit cedac09

Please sign in to comment.