mirror of
https://github.com/containers/podman.git
synced 2025-08-02 17:22:30 +08:00
Remove runtime lockDir and add in-memory lock manager
Remove runtime's lockDir as it is no longer needed after the lock rework. Add a trivial in-memory lock manager for unit testing Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:

committed by
Matthew Heon

parent
d4b2f11601
commit
35361595f3
@ -12,6 +12,8 @@ type SHMLockManager struct {
|
||||
}
|
||||
|
||||
// NewSHMLockManager makes a new SHMLockManager with the given number of locks.
|
||||
// Due to the underlying implementation, the exact number of locks created may
|
||||
// be greater than the number given here.
|
||||
func NewSHMLockManager(path string, numLocks uint32) (Manager, error) {
|
||||
locks, err := shm.CreateSHMLock(path, numLocks)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user