diff --git a/libcoz/profiler.h b/libcoz/profiler.h index d71dbd8..55a03a9 100644 --- a/libcoz/profiler.h +++ b/libcoz/profiler.h @@ -227,7 +227,7 @@ private: spinlock _latency_points_lock; //< Spinlock that protects the latency points map static_map _thread_states; //< Map from thread IDs to thread-local state - uint64_t _num_threads_running; //< Number of threads that are currently being sampled + std::atomic _num_threads_running; //< Number of threads that are currently being sampled std::atomic _experiment_active; //< Is an experiment running? std::atomic _global_delay; //< The global delay time required