summaryrefslogtreecommitdiff
path: root/libpod/lock/lock.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-08-08 12:26:01 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-01-04 09:45:59 -0500
commit3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f (patch)
tree8b63f3390d82228b451e7832dd42d5f4d329cedf /libpod/lock/lock.go
parent185136cf0edee5288576b541517e0e994f6ee18d (diff)
downloadpodman-3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f.tar.gz
podman-3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f.tar.bz2
podman-3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f.zip
Add an SHM-backed Lock Manager implementation
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/lock/lock.go')
-rw-r--r--libpod/lock/lock.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/lock/lock.go b/libpod/lock/lock.go
index 6999e1118..6d17828f6 100644
--- a/libpod/lock/lock.go
+++ b/libpod/lock/lock.go
@@ -1,7 +1,7 @@
package lock
-// LockManager provides an interface for allocating multiprocess locks.
-// Locks returned by LockManager MUST be multiprocess - allocating a lock in
+// Manager provides an interface for allocating multiprocess locks.
+// Locks returned by Manager MUST be multiprocess - allocating a lock in
// process A and retrieving that lock's ID in process B must return handles for
// the same lock, and locking the lock in A should exclude B from the lock until
// it is unlocked in A.
@@ -13,7 +13,7 @@ package lock
// AllocateLock() must fail once all available locks have been allocated.
// Locks are returned to use by calls to Free(), and can subsequently be
// reallocated.
-type LockManager interface {
+type Manager interface {
// AllocateLock returns an unallocated lock.
// It is guaranteed that the same lock will not be returned again by
// AllocateLock until the returned lock has Free() called on it.
@@ -35,7 +35,7 @@ type LockManager interface {
type Locker interface {
// ID retrieves the lock's ID.
// ID is guaranteed to uniquely identify the lock within the
- // LockManager - that is, calling RetrieveLock with this ID will return
+ // Manager - that is, calling RetrieveLock with this ID will return
// another instance of the same lock.
ID() string
// Lock locks the lock.