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

Method QueueChunk

src/LightingThread.cpp:128–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128void cLightingThread::QueueChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_CallbackAfter)
129{
130 ASSERT(m_World != NULL); // Did you call Start() properly?
131
132 cChunkStay * ChunkStay = new cLightingChunkStay(*this, a_ChunkX, a_ChunkZ, a_CallbackAfter);
133 {
134 // The ChunkStay will enqueue itself using the QueueChunkStay() once it is fully loaded
135 // In the meantime, put it into the PendingQueue so that it can be removed when stopping the thread
136 cCSLock Lock(m_CS);
137 m_PendingQueue.push_back(ChunkStay);
138 }
139 ChunkStay->Enable(*m_World->GetChunkMap());
140}
141
142
143

Callers 2

InitializeSpawnMethod · 0.80
QueueLightChunkMethod · 0.80

Calls 2

GetChunkMapMethod · 0.80
EnableMethod · 0.45

Tested by

no test coverage detected