- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,097 for unlock2 (0.15 sec)
-
src/sync/cond.go
// Wait returns. Instead, the caller should Wait in a loop: // // c.L.Lock() // for !condition() { // c.Wait() // } // ... make use of condition ... // c.L.Unlock() func (c *Cond) Wait() { c.checker.check() t := runtime_notifyListAdd(&c.notify) c.L.Unlock() runtime_notifyListWait(&c.notify, t) c.L.Lock() } // Signal wakes one goroutine waiting on c, if there is any. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/namespace-lock.go
delete(n.lockMap, resource) } n.lockMapMutex.Unlock() } return } // Unlock the namespace resource. func (n *nsLockMap) unlock(volume string, path string, readLock bool) { resource := pathJoin(volume, path) n.lockMapMutex.Lock() defer n.lockMapMutex.Unlock() if _, found := n.lockMap[resource]; !found { return } if readLock {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 05 23:56:35 UTC 2023 - 9.2K bytes - Viewed (0) -
src/net/internal/socktest/sys_windows.go
f, _ := sw.fltab[FilterSocket] sw.fmu.RUnlock() af, err := f.apply(so) if err != nil { return syscall.InvalidHandle, err } s, so.Err = windows.WSASocket(family, sotype, proto, protinfo, group, flags) if err = af.apply(so); err != nil { if so.Err == nil { syscall.Closesocket(s) } return syscall.InvalidHandle, err } sw.smu.Lock() defer sw.smu.Unlock() if so.Err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 4.3K bytes - Viewed (0) -
src/runtime/chan.go
gp.parkingOnChan.Store(false) // Make sure we unlock after setting activeStackChans and // unsetting parkingOnChan. The moment we unlock chanLock // we risk gp getting readied by a channel operation and // so gp could continue running before everything before // the unlock is visible (even to gp itself). unlock((*mutex)(chanLock)) return true } // compiler implements //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 25.9K bytes - Viewed (0) -
pkg/kubelet/runtime.go
defer s.Unlock() s.runtimeError = err } func (s *runtimeState) setRuntimeHandlers(rtHandlers []kubecontainer.RuntimeHandler) { s.Lock() defer s.Unlock() s.rtHandlers = rtHandlers } func (s *runtimeState) runtimeHandlers() []kubecontainer.RuntimeHandler { s.RLock() defer s.RUnlock() return s.rtHandlers } func (s *runtimeState) setStorageState(err error) { s.Lock() defer s.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 00:48:07 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/fake.go
f.lock.RLock() defer f.lock.RUnlock() f.expect.lock.RLock() defer f.expect.lock.RUnlock() return len(f.Actions) >= len(f.expect.Actions) } func (f *fakeResourceManager) Validate() error { f.lock.RLock() defer f.lock.RUnlock() f.expect.lock.RLock() defer f.expect.lock.RUnlock() if !reflect.DeepEqual(f.expect.Actions, f.Actions) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 4.4K bytes - Viewed (0) -
src/net/internal/socktest/sys_unix.go
sw.fmu.RLock() f := sw.fltab[FilterSocket] sw.fmu.RUnlock() af, err := f.apply(so) if err != nil { return -1, err } s, so.Err = syscall.Socket(family, sotype, proto) if err = af.apply(so); err != nil { if so.Err == nil { syscall.Close(s) } return -1, err } sw.smu.Lock() defer sw.smu.Unlock() if so.Err != nil { sw.stats.getLocked(so.Cookie).OpenFailed++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 4K bytes - Viewed (0) -
pkg/kubelet/status/state/state_checkpoint.go
sc.mux.Lock() defer sc.mux.Unlock() sc.cache.SetContainerResourceAllocation(podUID, containerName, alloc) return sc.storeState() } // SetPodResourceAllocation sets pod resource allocation func (sc *stateCheckpoint) SetPodResourceAllocation(a PodResourceAllocation) error { sc.mux.Lock() defer sc.mux.Unlock() sc.cache.SetPodResourceAllocation(a) return sc.storeState() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 00:16:44 UTC 2023 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/ready.go
// waiting despite the state moved back to Pending. r.lock.RUnlock() case Ready: generation := r.generation r.lock.RUnlock() return generation, nil case Stopped: r.lock.RUnlock() return 0, fmt.Errorf("apiserver cacher is stopped") default: r.lock.RUnlock() return 0, fmt.Errorf("unexpected apiserver cache state: %v", r.state) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 16 13:32:11 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/kubelet/status/state/state_mem.go
defer s.Unlock() if _, ok := s.podAllocation[podUID]; !ok { s.podAllocation[podUID] = make(map[string]v1.ResourceList) } s.podAllocation[podUID][containerName] = alloc klog.V(3).InfoS("Updated container resource allocation", "podUID", podUID, "containerName", containerName, "alloc", alloc) return nil } func (s *stateMemory) SetPodResourceAllocation(a PodResourceAllocation) error { s.Lock() defer s.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 4K bytes - Viewed (0)