mirror of
https://github.com/google/cadvisor.git
synced 2026-10-28 16:44:49 +08:00
The ThinPoolWatcher cache is read frequently by container housekeeping goroutines (via GetUsage) while being updated every 15 seconds by Refresh(). Using atomic.Value allows lock-free reads, eliminating potential contention between the many readers and the single writer. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>