MCPcopy Create free account
hub / github.com/cuberite/cuberite / Start

Method Start

src/DeadlockDetect.cpp:32–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32bool 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

Callers

nothing calls this directly

Calls 1

ForEachWorldMethod · 0.80

Tested by

no test coverage detected