| 30 | |
| 31 | |
| 32 | bool cDeadlockDetect::Start(int a_IntervalSec) |
| 33 | { |
| 34 | m_IntervalSec = a_IntervalSec; |
| 35 | |
| 36 | // Read the initial world data: |
| 37 | class cFillIn : |
| 38 | public cWorldListCallback |
| 39 | { |
| 40 | public: |
| 41 | cFillIn(cDeadlockDetect * a_Detect) : |
| 42 | m_Detect(a_Detect) |
| 43 | { |
| 44 | } |
| 45 | |
| 46 | virtual bool Item(cWorld * a_World) override |
| 47 | { |
| 48 | m_Detect->SetWorldAge(a_World->GetName(), a_World->GetWorldAge()); |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | protected: |
| 53 | cDeadlockDetect * m_Detect; |
| 54 | } FillIn(this); |
| 55 | cRoot::Get()->ForEachWorld(FillIn); |
| 56 | return super::Start(); |
| 57 | } |
| 58 | |
| 59 | |
| 60 |
nothing calls this directly
no test coverage detected