(position pos.BlockPosition, w *Window)
| 22 | } |
| 23 | |
| 24 | func (mgr *WindowManager) AddWindow(position pos.BlockPosition, w *Window) error { |
| 25 | if w.Id == 0 { |
| 26 | return fmt.Errorf("window id should not be 0") |
| 27 | } |
| 28 | mgr.mu.Lock() |
| 29 | defer mgr.mu.Unlock() |
| 30 | mgr.windows[position] = w |
| 31 | return nil |
| 32 | } |
| 33 | |
| 34 | func (mgr *WindowManager) Range(itr func(pos.BlockPosition, *Window)) { |
| 35 | mgr.mu.RLock() |
nothing calls this directly
no outgoing calls
no test coverage detected