// Creates a new concurrent map.
Creates a new concurrent map.
// Creates a new concurrent map .
func newSharedMap(size int32) *sharedMap {
	m := &sharedMap{
		size:   size,
		shared: make([]*shared, size),
	}
	for i := range m.shared {
		m.shared[i] = &shared{
			msgs: make(map[int32]EventHandler),
		}
	}
	return m
}
func newSharedMap ( size int32 ) * sharedMap { m := & sharedMap { size : size , shared : make ( [ ] * shared , size ) , } for i := range m . shared { m . shared [ i ] = & shared { msgs : make ( map [ int32 ] EventHandler ) , } } return m }
Creates a new concurrent map.
Creates a new concurrent map .