func (m *safeMap) Set(k interface{}, v interface{}) bool {
	m.lock.Lock()
	defer m.lock.Unlock()
	if val, ok := m.sm[k]; !ok {
		m.sm[k] = v
	} else if val != v {
		m.sm[k] = v
	} else {
		return false
	}
	return true
}
// Set Maps the given key and value. Returns false if the key is already in the map and changes nothing.
Set Maps the given key and value. Returns false if the key is already in the map and changes nothing.
// Set Maps the given key and value . Returns false if the key is already in the map and changes nothing .
func (m *safeMap) Set(k interface{}, v interface{}) bool {
	m.lock.Lock()
	defer m.lock.Unlock()
	if val, ok := m.sm[k]; !ok {
		m.sm[k] = v
	} else if val != v {
		m.sm[k] = v
	} else {
		return false
	}
	return true
}
func ( m * safeMap ) Set ( k interface { } , v interface { } ) bool { m . lock . Lock ( ) defer m . lock . Unlock ( ) if val , ok := m . sm [ k ] ; ! ok { m . sm [ k ] = v } else if val != v { m . sm [ k ] = v } else { return false } return true }
Set Maps the given key and value.
Set Maps the given key and value .