]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/client_map.h
Update meshgen threads to use queue waiting
[dragonblocks_alpha.git] / src / client / client_map.h
index b9e06168531385c4c6f5bc7ebb65c742f5bd5f42..34998b5a8172299bbeb4c0d20d5e926aae63cdb1 100644 (file)
@@ -27,7 +27,7 @@ extern struct ClientMap
 {
        Map *map;                                       // map object
        Queue *queue;                                   // MapBlock * queue (thread safe)
-       bool cancel;                                    // used to notify meshgen and sync thread about quit
+       atomic_bool cancel;                             // used to notify meshgen and sync thread about quit
        pthread_t meshgen_threads[NUM_MESHGEN_THREADS]; // consumer threads for meshgen queue
        pthread_t sync_thread;                          // this thread requests new / changed blocks from server
        u32 simulation_distance;                        // simulation distance sent by server