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

Method cBiomeCache

Tools/BiomeVisualiser/BiomeCache.cpp:35–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35cBiomeCache::cBiomeCache(void) :
36 m_Source(NULL),
37 m_BaseX(-100000),
38 m_BaseZ(-100000),
39 m_Available(NULL),
40 m_IsTerminatingThreads(false)
41{
42 int NumThreads = GetNumCores();
43 NumThreads--; // One core should be left for the system to run on ;)
44 for (int i = NumThreads; i > 0; i--)
45 {
46 cThread * Thread = new cThread(*this);
47 m_Threads.push_back(Thread);
48 Thread->Start();
49 }
50}
51
52
53

Callers

nothing calls this directly

Calls 2

GetNumCoresFunction · 0.70
StartMethod · 0.45

Tested by

no test coverage detected