+checklocks:s.serverMutex
(ctx context.Context)
| 658 | |
| 659 | // +checklocks:s.serverMutex |
| 660 | func (s *Server) stopAllSourceManagersLocked(ctx context.Context) { |
| 661 | for _, sm := range s.sourceManagers { |
| 662 | sm.stop(ctx) |
| 663 | } |
| 664 | |
| 665 | for _, sm := range s.sourceManagers { |
| 666 | sm.waitUntilStopped() |
| 667 | } |
| 668 | |
| 669 | s.sourceManagers = map[snapshot.SourceInfo]*sourceManager{} |
| 670 | } |
| 671 | |
| 672 | // +checklocks:s.serverMutex |
| 673 | func (s *Server) syncSourcesLocked(ctx context.Context) error { |
no test coverage detected