- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetFinalizer (0.1 sec)
-
cni/pkg/nodeagent/pod_cache.go
defer p.mu.Unlock() if _, ok := p.currentPodCache[uid]; !ok { p.currentPodCache[uid] = WorkloadInfo{} } } func (p *podNetnsCache) addToCacheUnderLock(uid string, workload WorkloadInfo) { runtime.SetFinalizer(workload.Netns, closeNetns) p.currentPodCache[uid] = workload } func closeNetns(netns NetnsCloser) { netns.Close() } func (p *podNetnsCache) ReadCurrentPodSnapshot() map[string]WorkloadInfo {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 17:18:11 UTC 2024 - 4.3K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
} } return readers, nil } func gatherFile(f string) (local.ReaderSource, error) { r, err := os.Open(f) if err != nil { return local.ReaderSource{}, err } runtime.SetFinalizer(r, func(x *os.File) { err = x.Close() if err != nil { log.Infof("file : %s is not closed: %v", f, err) } }) return local.ReaderSource{Name: f, Reader: r}, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 31 06:53:50 UTC 2024 - 17.6K bytes - Viewed (0)