Files
docker-cli/components/cli/command/container
Boaz Shuster 1c68035702 Hide the mutex in formatter.ContainerStats
The formatter.ContainerStats struct exposes its Mutex.
This is a bad design and should be fixed.

To fix that, I separated the statistics
attributes from ContainerStats to StatsEntry and
hid the mutex. Notice that the mutex protects both
the `err` field and the statistics attributes.

Then, implemented SetStatistics, SetError, GetStatistics
and GetError to avoid races.

Moreover, to make this less granular, I decided to
replace the read-write mutex with the regular mutex and
to pass a StatsEntry slice to formatter.ContainerStatsWrite

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
Upstream-commit: 3bc50c45ba
Component: cli
2016-10-10 21:52:53 +03:00
..
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-08 15:46:29 -04:00
2016-09-20 12:01:04 -07:00
2016-09-13 10:50:55 +08:00
2016-09-08 15:46:29 -04:00
2016-09-19 10:34:31 -07:00
2016-09-08 15:46:29 -04:00
2016-09-13 10:50:55 +08:00
2016-09-08 15:46:29 -04:00