- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 2,776 for deer (0.06 sec)
-
src/context/afterfunc_test.go
c.mu.Lock() defer c.mu.Unlock() k := new(byte) if c.afterFuncs == nil { c.afterFuncs = make(map[*byte]func()) } c.afterFuncs[k] = f return func() bool { c.mu.Lock() defer c.mu.Unlock() _, ok := c.afterFuncs[k] delete(c.afterFuncs, k) return ok } } func (c *afterFuncContext) cancel(err error) { c.mu.Lock() defer c.mu.Unlock() if c.err != nil { return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:58:52 UTC 2023 - 3.4K bytes - Viewed (0) -
pkg/kubelet/cm/dra/plugin/client_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 16:27:05 UTC 2024 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 10:06:31 UTC 2017 - 3.2K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/waiting_pods_map.go
func (m *waitingPodsMap) add(wp *waitingPod) { m.mu.Lock() defer m.mu.Unlock() m.pods[wp.GetPod().UID] = wp } // remove a WaitingPod from the map. func (m *waitingPodsMap) remove(uid types.UID) { m.mu.Lock() defer m.mu.Unlock() delete(m.pods, uid) } // get a WaitingPod from the map. func (m *waitingPodsMap) get(uid types.UID) *waitingPod { m.mu.RLock() defer m.mu.RUnlock() return m.pods[uid] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 4.5K bytes - Viewed (0) -
internal/config/lambda/event/targetlist.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 4.3K bytes - Viewed (0) -
src/context/example_test.go
} cond := sync.NewCond(new(sync.Mutex)) var wg sync.WaitGroup for i := 0; i < 4; i++ { wg.Add(1) go func() { defer wg.Done() ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond) defer cancel() cond.L.Lock() defer cond.L.Unlock() err := waitOnCond(ctx, cond, func() bool { return false }) fmt.Println(err) }() } wg.Wait()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:24:28 UTC 2023 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go
ctx = metadata.NewOutgoingContext(ctx, pr.contextMetadata) } go func() { defer utilruntime.HandleCrash() <-stopCh pr.mux.Lock() defer pr.mux.Unlock() pr.stopped = true pr.cond.Signal() }() timer := pr.clock.NewTimer(progressRequestPeriod) defer timer.Stop() for { stopped := func() bool { pr.mux.Lock() defer pr.mux.Unlock() for pr.waiting == 0 && !pr.stopped { pr.cond.Wait() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 09:56:38 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go
err := func() error { s.lock.Lock() defer s.lock.Unlock() if s.Errors > 0 { s.Errors-- return fmt.Errorf("injected error") } return nil }() if err != nil { return err } return s.Interface.GetList(ctx, key, opts, listObj) } func (s *StorageInjectingListErrors) ErrorsConsumed() (bool, error) { s.lock.Lock() defer s.lock.Unlock() return s.Errors == 0, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 22 07:26:55 UTC 2024 - 10.3K bytes - Viewed (1) -
src/syscall/pwd_plan9.go
} func Chdir(path string) error { // If Chdir is to a relative path, sync working dir first if fixwd(path) { defer runtime.UnlockOSThread() } wdmu.Lock() defer wdmu.Unlock() runtime.LockOSThread() defer runtime.UnlockOSThread() if err := chdir(path); err != nil { return err } wd, err := getwd() if err != nil { return err } wdSet = true wdStr = wd return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/kubelet/pod/testing/fake_mirror_client.go
fmc.mirrorPodLock.RLock() defer fmc.mirrorPodLock.RUnlock() return fmc.mirrorPods.Has(podFullName) } func (fmc *FakeMirrorClient) NumOfPods() int { fmc.mirrorPodLock.RLock() defer fmc.mirrorPodLock.RUnlock() return fmc.mirrorPods.Len() } func (fmc *FakeMirrorClient) GetPods() []string { fmc.mirrorPodLock.RLock() defer fmc.mirrorPodLock.RUnlock() return sets.List(fmc.mirrorPods) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 2.4K bytes - Viewed (0)