Closed albertomercurio closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.27%. Comparing base (
d469d80
) to head (e7271a3
). Report is 3 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
I improved the thread safety of
ProgressBar
. Indeed, theprevious_time
variable was updated in a non-thread-safe way. I converted it into aThreads.Atomic
object and then performed atomic operations on it.Then, I also included a
ReentrantLock
in order to be sure that theprint
functions are thread-safe.Finally, I changed the
ProgressBar
struct to ummutable, improving performances.