From eba89259a5938f047d78b74c5bbbc908f8ff4be8 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 4 Jan 2019 14:15:08 -0500 Subject: Address lingering review comments from SHM locking PR Signed-off-by: Matthew Heon --- libpod/lock/lock.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpod/lock/lock.go') diff --git a/libpod/lock/lock.go b/libpod/lock/lock.go index 73c1fdcf7..1f94171fe 100644 --- a/libpod/lock/lock.go +++ b/libpod/lock/lock.go @@ -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 -- cgit v1.2.3-54-g00ecf