mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Track the last progress update with an atomic type, not volatile
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define MAIN_HPP
|
||||
|
||||
#include <stddef.h>
|
||||
#include <atomic>
|
||||
|
||||
struct index {
|
||||
long long start = 0;
|
||||
@@ -23,7 +24,7 @@ extern int geometry_scale;
|
||||
extern int quiet;
|
||||
extern int quiet_progress;
|
||||
extern double progress_interval;
|
||||
extern volatile double last_progress;
|
||||
extern std::atomic<double> last_progress;
|
||||
|
||||
extern size_t CPUS;
|
||||
extern size_t TEMP_FILES;
|
||||
|
||||
Reference in New Issue
Block a user