| 43 | } |
| 44 | |
| 45 | uint32 FDeadLoopCheck::FRunner::Run() |
| 46 | { |
| 47 | while (bRunning) |
| 48 | { |
| 49 | FPlatformProcess::Sleep(1.0f); |
| 50 | if (GuardCounter.GetValue() == 0) |
| 51 | continue; |
| 52 | |
| 53 | TimeoutCounter.Increment(); |
| 54 | if (TimeoutCounter.GetValue() < Timeout) |
| 55 | continue; |
| 56 | |
| 57 | const auto Guard = TimeoutGuard.load(); |
| 58 | if (Guard) |
| 59 | { |
| 60 | TimeoutGuard.store(nullptr); |
| 61 | Guard->SetTimeout(); |
| 62 | } |
| 63 | } |
| 64 | return 0; |
| 65 | } |
| 66 | |
| 67 | void FDeadLoopCheck::FRunner::Stop() |
| 68 | { |
nothing calls this directly
no test coverage detected