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

Method Execute

Tools/AnvilStats/Processor.cpp:38–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38void cProcessor::cThread::Execute(void)
39{
40 LOG("Started a new thread: %d", cIsThread::GetCurrentID());
41
42 m_ParentProcessor.m_ThreadsHaveStarted.Set();
43
44 for (;;)
45 {
46 AString FileName = m_ParentProcessor.GetOneFileName();
47 if (FileName.empty())
48 {
49 // All done, terminate the thread
50 break;
51 }
52 ProcessFile(FileName);
53 } // for-ever
54
55 LOG("Thread %d terminated", cIsThread::GetCurrentID());
56}
57
58
59

Callers

nothing calls this directly

Calls 4

LOGFunction · 0.85
GetOneFileNameMethod · 0.80
emptyMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected