mirror of
https://github.com/containers/podman.git
synced 2025-06-17 15:08:08 +08:00
Address lingering review comments from SHM locking PR
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -43,6 +43,9 @@ type Locker interface {
|
||||
// encounters a fatal error.
|
||||
// All errors must be handled internally, as they are not returned. For
|
||||
// the most part, panicking should be appropriate.
|
||||
// Some lock implementations may require that Lock() and Unlock() occur
|
||||
// within the same goroutine (SHM locking, for example). The usual Go
|
||||
// Lock()/defer Unlock() pattern will still work fine in these cases.
|
||||
Lock()
|
||||
// Unlock unlocks the lock.
|
||||
// All errors must be handled internally, as they are not returned. For
|
||||
|
Reference in New Issue
Block a user