diff options
author | tycho <work.tycho@gmail.com> | 2015-05-30 12:11:17 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-30 12:11:17 +0200 |
commit | 06a74e45e247a2d23c6b5a238a3c1b9b17b6c341 (patch) | |
tree | 965c54b25acc4a3b7dee194f9194f885299e5656 /src/LightingThread.h | |
parent | Clean up Spawn Prepare (diff) | |
download | cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.gz cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.bz2 cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.lz cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.xz cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.zst cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.zip |
Diffstat (limited to 'src/LightingThread.h')
-rw-r--r-- | src/LightingThread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LightingThread.h b/src/LightingThread.h index 87eb9c6d8..da6be12c8 100644 --- a/src/LightingThread.h +++ b/src/LightingThread.h @@ -61,7 +61,7 @@ public: void Stop(void); /** Queues the entire chunk for lighting */ - void QueueChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_CallbackAfter = nullptr); + void QueueChunk(int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_CallbackAfter); /** Blocks until the queue is empty or the thread is terminated */ void WaitForQueueEmpty(void); @@ -77,9 +77,9 @@ protected: cLightingThread & m_LightingThread; int m_ChunkX; int m_ChunkZ; - cChunkCoordCallback * m_CallbackAfter; + std::unique_ptr<cChunkCoordCallback> m_CallbackAfter; - cLightingChunkStay(cLightingThread & a_LightingThread, int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_CallbackAfter); + cLightingChunkStay(cLightingThread & a_LightingThread, int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_CallbackAfter); protected: virtual void OnChunkAvailable(int a_ChunkX, int a_ChunkZ) override |