| 2936 | |
| 2937 | |
| 2938 | void cChunkMap::FastSetQueuedBlocks() |
| 2939 | { |
| 2940 | // Asynchronously set blocks: |
| 2941 | sSetBlockList FastSetBlockQueueCopy; |
| 2942 | { |
| 2943 | cCSLock Lock(m_CSFastSetBlock); |
| 2944 | std::swap(FastSetBlockQueueCopy, m_FastSetBlockQueue); |
| 2945 | } |
| 2946 | this->FastSetBlocks(FastSetBlockQueueCopy); |
| 2947 | if (!FastSetBlockQueueCopy.empty()) |
| 2948 | { |
| 2949 | // Some blocks failed, store them for next tick: |
| 2950 | cCSLock Lock(m_CSFastSetBlock); |
| 2951 | m_FastSetBlockQueue.splice(m_FastSetBlockQueue.end(), FastSetBlockQueueCopy); |
| 2952 | } |
| 2953 | } |
| 2954 | |
| 2955 | |
| 2956 |
no test coverage detected