make shadow.Value a Locker
This way it's correctly handled by CopyStructure
This commit is contained in:
parent
583cc350a9
commit
c66dd48b6e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue