restic/internal/ui/progress
Alexander Neumann 6c514adb8a ui/progress: Use mutex instead of atomic
The counter value needs to be aligned to 64 bit in memory for the
atomic functions to work on some platform (such as 32 bit ARM).

The atomic package says in its documentation:

> These functions require great care to be used correctly. Except for
> special, low-level applications, synchronization is better done with
> channels or the facilities of the sync package.

This commit replaces the atomic functions with a simple sync.Mutex, so
we don't have to care about alignment.
2020-12-22 21:03:27 +01:00
..
counter.go ui/progress: Use mutex instead of atomic 2020-12-22 21:03:27 +01:00
counter_test.go Replace restic.Progress with new progress.Counter 2020-11-09 12:12:35 +01:00
signals_bsd.go Replace restic.Progress with new progress.Counter 2020-11-09 12:12:35 +01:00
signals_sysv.go Replace restic.Progress with new progress.Counter 2020-11-09 12:12:35 +01:00
signals_windows.go Replace restic.Progress with new progress.Counter 2020-11-09 12:12:35 +01:00