diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-08-23 15:13:41 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-01-04 09:51:09 -0500 |
commit | 3de560053f4b391c8386554160f61a2a086c1564 (patch) | |
tree | 0903fde38cc39d0b0041643cb8e04a5f2727902f /libpod/container.go | |
parent | a364b656eaef1be5329abfd02d3fcd2dbcd37d64 (diff) | |
download | podman-3de560053f4b391c8386554160f61a2a086c1564.tar.gz podman-3de560053f4b391c8386554160f61a2a086c1564.tar.bz2 podman-3de560053f4b391c8386554160f61a2a086c1564.zip |
Convert containers to SHM locking
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libpod/container.go b/libpod/container.go index b4190344a..4e5088b32 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -9,6 +9,7 @@ import ( "github.com/containernetworking/cni/pkg/types" cnitypes "github.com/containernetworking/cni/pkg/types/current" + "github.com/containers/libpod/libpod/lock" "github.com/containers/libpod/pkg/namespaces" "github.com/containers/storage" "github.com/cri-o/ocicni/pkg/ocicni" @@ -122,7 +123,7 @@ type Container struct { batched bool valid bool - lock storage.Locker + lock lock.Locker runtime *Runtime rootlessSlirpSyncR *os.File @@ -211,6 +212,8 @@ type Config struct { Pod string `json:"pod,omitempty"` // Namespace the container is in Namespace string `json:"namespace,omitempty"` + // ID of this container's lock + LockID uint32 `json:"lockID"` // TODO consider breaking these subsections up into smaller structs |