diff --git a/helper/shadow/value.go b/helper/shadow/value.go index 2413335b80..178b7e78ad 100644 --- a/helper/shadow/value.go +++ b/helper/shadow/value.go @@ -26,6 +26,14 @@ type Value struct { valueSet bool } +func (v *Value) Lock() { + v.lock.Lock() +} + +func (v *Value) Unlock() { + v.lock.Unlock() +} + // Close closes the value. This can never fail. For a definition of // "close" see the struct docs. func (w *Value) Close() error {