1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 01:06:39 +00:00
restic/internal/ui
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
..
json backup: Fix possible deadlock of scanner goroutine 2020-09-30 23:13:10 +02:00
progress ui/progress: Use mutex instead of atomic 2020-12-22 21:03:27 +01:00
table avoiding unnecessary type conversions 2019-06-30 23:58:00 +03:00
termstatus Merge pull request #3150 from MichaelEischer/fix-windows-redir-output 2020-12-06 21:17:27 +01:00
backup.go backup: Always remove the status lines once a backup ends 2020-09-30 23:13:10 +02:00
message.go Use new archiver code for backup 2018-04-28 22:08:11 +02:00
stdio_wrapper.go Simplify ui.StdioWrapper.Write 2020-10-17 20:30:46 +02:00
stdio_wrapper_test.go Simplify ui.StdioWrapper.Write 2020-10-17 20:30:46 +02:00