Sebastiaan van Stijn
5ca758199d
replace pkg/locker with github.com/moby/locker
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2020-09-10 22:15:40 +02:00
Daniel Nephin
4f0d95fa6e
Add canonical import comment
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2018-02-05 16:51:57 -05:00
Alexander Morozov
889cfd1b44
pkg/locker: add benchmarks
...
Signed-off-by: Alexander Morozov <lk4d4math@gmail.com >
2017-10-02 11:20:21 -07:00
Marcel Edmund Franke
6d3bc28289
Fix typos in Locker example
...
Signed-off-by: Marcel Edmund Franke <marcel.edmund.franke@gmail.com >
2017-09-10 11:34:19 +02:00
zhenghenghuo
f1a19fa8c0
fix some typos
...
Signed-off-by: zhenghenghuo <zhenghenghuo@zju.edu.cn >
try to pass test
Signed-off-by: zhenghenghuo <zhenghenghuo@zju.edu.cn >
try to pass the test
Signed-off-by: zhenghenghuo <zhenghenghuo@zju.edu.cn >
2016-12-28 09:43:27 +08:00
Jie Luo
ea2dd4b5d0
duplicated the
...
Signed-off-by: Jie Luo <luo612@zju.edu.cn >
typo
Signed-off-by: Jie Luo <luo612@zju.edu.cn >
fix some typos
Signed-off-by: Jie Luo <luo612@zju.edu.cn >
2016-12-21 20:16:19 +08:00
Justas Brazauskas
927b334ebf
Fix typos found across repository
...
Signed-off-by: Justas Brazauskas <brazauskasjustas@gmail.com >
2015-12-13 18:04:12 +02:00
Brian Goff
985175fd8f
Fix race in locker call to dec()
...
Can't safely use uint32 for locker since we need to decrement the count,
which requires loading the unit and doing some math, which is inherintly
racey.
Instead use Int32 which we can safely use with atomic and AddInt32 with
`-1`
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2015-11-24 11:59:09 -05:00
Luca-Bogdan Grigorescu
d1e72baa15
Fix small typos in documentation files
...
Signed-off-by: Luca-Bogdan Grigorescu <bogdan@gmail.com >
2015-11-15 00:53:27 +02:00
Brian Goff
fd672d5926
Use timeouts instead of relying on runtime.GoSched
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2015-11-11 20:59:07 -05:00
Brian Goff
fe66fdd18c
Fix potential races in the volume store
...
Uses finer grained locking so that each volume name gets its own lock
rather than only being protected by the global lock, which itself needs
to be unlocked during cetain operations (`create` especially`)
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2015-11-04 16:59:47 -05:00