mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
commit
4c57ad8379
@ -22,7 +22,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
// KeyMutex is a thread-safe interface for aquiring locks on arbitrary strings.
|
// KeyMutex is a thread-safe interface for acquiring locks on arbitrary strings.
|
||||||
type KeyMutex interface {
|
type KeyMutex interface {
|
||||||
// Aquires a lock associated with the specified ID, creates the lock if one doesn't already exist.
|
// Aquires a lock associated with the specified ID, creates the lock if one doesn't already exist.
|
||||||
LockKey(id string)
|
LockKey(id string)
|
||||||
|
Loading…
Reference in New Issue
Block a user