diff --git a/vendored/libfuse/include/thread_pool.hpp b/vendored/libfuse/include/thread_pool.hpp index 0d07060d..cbd77fb3 100644 --- a/vendored/libfuse/include/thread_pool.hpp +++ b/vendored/libfuse/include/thread_pool.hpp @@ -173,6 +173,9 @@ private: std::atomic _tasks_completed{0}; // Auto-scaling state + // _autoscale_enabled and _scaling_config are set once in the + // constructor before any threads start and are thereafter read-only. + // No synchronization is needed for their accesses. bool _autoscale_enabled; ScalingConfig _scaling_config; pthread_t _monitor_thread;