| 126 | |
| 127 | |
| 128 | void 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 |
no test coverage detected