make shadow.Value a Locker

This way it's correctly handled by CopyStructure
pull/15497/head
James Bardin 9 years ago
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…
Cancel
Save