wagoodman / go-progress

fix: make Writer and TimedProgress threadsafe (#3)
* fix: make Writer safe for concurrency Previously, the go race detector could detect races in projects which used go-progress's Writer from multiple go routines. Change struct members to atomic variants to make the Writer concurrency safe without changing its semantics. Signed-off-by: Will Murphy <will.murphy@anchore.com> * fix: make TimedProgress concurrency safe Signed-off-by: Will Murphy <will.murphy@anchore.com> --------- Signed-off-by: Will Murphy <will.murphy@anchore.com>
William Murphy William Murphy committed on Sep 25, 2023, 12:17 PM
Showing 3 changed files +37 additions -18 deletions
M writer.go +17 -14
Browse files at this commit โ†’